Greg Shuflin
75b1f9cce5
Working on main compiler pipeline
...
Got rid of a bunch of confusingly-designed debugging infrastruture.
Need a better way to handle per-stage debug outputs (also I don't want
to be using stages at all long-term)
2021-10-14 00:03:51 -07:00
Greg Shuflin
d3ebcc9654
Fix all current warnings
2021-10-13 00:53:32 -07:00
greg
c96644ddce
Modules in symbol table
2019-10-24 02:13:07 -07:00
greg
cc0ac83709
Refactor a lot of symbol table in prep for modules
2019-10-24 01:34:13 -07:00
greg
1ffe61cf5f
Partway there in terms of implementing source map lookup
2019-10-23 14:47:18 -07:00
greg
7495f30e16
Pass SourceMapHandle to SymbolTable
2019-10-23 14:47:18 -07:00
greg
f3ecdc61cb
Remove old TODO
2019-10-23 02:22:10 -07:00
greg
1493d12a22
Reduce unused imports
2019-10-21 03:02:11 -07:00
greg
86dc5eca02
Get rid of symbol segment kind
...
I don't think I need this after all
2019-10-18 18:24:57 -07:00
greg
7a56b6dfc0
Add some more methods around this
2019-10-18 09:54:56 -07:00
greg
854740a63f
SymbolTrie
2019-10-17 03:15:39 -07:00
greg
26fa4a29ec
Put type names into symbol table
2019-10-16 20:22:40 -07:00
greg
97b59d7e70
Symbol table tests to separate file
2019-10-16 19:51:43 -07:00
greg
5a9f3c1850
Sort symbols in debug
2019-09-25 02:43:07 -07:00
greg
58251d3f28
Use colored in symbol table debug
2019-09-25 02:28:24 -07:00
greg
2e42313991
add_new_symbol clarification
2019-09-25 02:18:36 -07:00
greg
6368d10d92
Rename Symbol.name -> Symbol.local_name
...
to make it clearer what this means
2019-09-24 18:56:53 -07:00
greg
71b3365de2
Remove all the rest of the instances of Meta from the AST
...
Still need to do tests
2019-09-20 02:21:39 -07:00
greg
e1a83b5de3
Start to use table lookups instead of Meta
...
For fqsn
2019-09-19 03:34:09 -07:00
greg
8b1dd561f2
Add get_fqsn_from_id opposite lookup method
2019-09-19 03:06:49 -07:00
greg
6ebe893acb
Add id_to_fqsn table on symbol table
2019-09-19 02:58:52 -07:00
greg
b91c3c9da5
Change design of Statement AST node
2019-09-17 02:25:11 -07:00
greg
08da787aae
Make AST a struct
2019-09-11 19:25:12 -07:00
greg
22887678bd
Remove lookup_by_name
2019-09-10 03:35:11 -07:00
greg
72944ded1b
Fixed all broken tests
2019-09-10 03:31:23 -07:00
greg
34abb9b081
Start work on qualified names
2019-08-31 23:39:01 -07:00
greg
89d967aee4
FullyQualifiedSymbolName string representation
2019-08-30 22:55:59 -07:00
greg
61182a847f
Rename lookup_by_path -> lookup_by_fqsn
2019-08-30 19:05:01 -07:00
greg
f6dcd7f0b8
Use proper symbol_table lookup in eval
2019-08-30 19:03:52 -07:00
greg
16dc973aa6
Remove one use of symbol_table.lookup_by_name
...
Should aim to remove it entirely
2019-08-30 18:56:16 -07:00
greg
611e46938d
Make symbol names better
...
Refactor of symbol table to make name lookups
more precise, necessary for struct member lookups
2019-08-30 18:41:47 -07:00
greg
3d6447abb4
Start work on symbol table lookup by type name
2019-08-21 10:10:57 -07:00
greg
e750247134
Successfully constructing a record
...
Not yet destructing it
2019-08-12 12:46:18 -07:00
greg
b65d6e4c8e
Symbol table notes to self
2019-08-12 11:27:16 -07:00
greg
d9eca8ffb3
Handle records more properly in symbol table
2019-08-12 11:18:03 -07:00
greg
33c2786ea1
More complicated FormalParam type
2019-06-16 14:56:52 -07:00
greg
ce2a65b044
Clean up some unused code
2019-05-20 16:10:50 -07:00
greg
bdcae36b60
More cleaning up of how scopes are stored
...
on Symbol
2019-03-11 02:47:47 -07:00
greg
dbcd2278a6
Renamings
2019-03-11 02:35:42 -07:00
greg
2490aaf3f4
Add types necessary for refactor of Symbol table
2019-03-11 01:36:11 -07:00
greg
d4ad97b39a
start preparing to get rid of symbol_table.lookup_by_name
2019-03-10 17:32:47 -07:00
greg
24213070a3
Delete useless comment
2019-03-10 17:29:02 -07:00
greg
051669b4cc
Stuff pertaining to variant scoping
2019-03-10 17:24:58 -07:00
greg
c64f53a050
Detect duplicate variable declarations correctly
...
Later I'll probably want to make it so that you can explicitly override
the value of a declared variable
2019-03-10 17:02:01 -07:00
greg
8f176543c7
Nested scopes in symbol table
2019-03-10 16:04:20 -07:00
greg
9716b5e55b
Symbol table detects some duplicate symbols
2019-03-08 03:57:32 -08:00
greg
956353cd80
Move rc! macro to util
...
So it can be used anywhere
2019-03-08 01:15:19 -08:00
greg
98db60498a
Add very basic symbol table test shim
2019-03-07 23:51:31 -08:00
greg
7694afc9e2
Add type for talking about symbol paths
...
to symbol table
2019-03-07 20:45:12 -08:00
greg
95fe1941a1
Kill some unused items
2019-02-21 18:39:41 -08:00