Commit Graph

77 Commits

Author SHA1 Message Date
Jesse Brault
9b83a531ca Remove un-needed test. 2025-10-29 12:14:52 -05:00
Jesse Brault
e5c5be6d95 Re-enable tests for name analysis. Currently failing. 2025-10-29 12:13:39 -05:00
Jesse Brault
dd249dd5bd Properly using dyn for better dispatch of gather methods. 2025-10-13 11:58:30 -05:00
Jesse Brault
3ab59961dd WIP on name-analysis gather, up to statements. 2025-10-06 13:43:38 -05:00
Jesse Brault
5b772443f8 Add walk impl. 2025-09-29 09:10:57 -05:00
Jesse Brault
df8e2279dc WIP ast node ref enum and AstNode impls. 2025-09-28 15:02:20 -05:00
Jesse Brault
6e37e3a5dd WIP bringing back name analysis. 2025-09-28 12:34:37 -05:00
Jesse Brault
5b5386c7e3 Add file_id param/prop and Range props. 2025-09-25 18:43:05 -05:00
Jesse Brault
aff2fe2a2b Moving things around and cargo fmt. 2025-09-21 11:19:27 -05:00
Jesse Brault
11f97a2174 Auto gen pretty_print impls. 2025-09-18 08:38:30 -05:00
Jesse Brault
26cb28307c Move imports to generated build code. 2025-09-17 19:47:53 -05:00
Jesse Brault
cce927d964 Add a couple build tests. 2025-09-17 17:28:57 -05:00
Jesse Brault
a7eabae3e3 WIP polymorphic building. 2025-09-16 10:59:38 -05:00
Jesse Brault
c94a698a52 D string expression test. 2025-09-16 10:31:38 -05:00
Jesse Brault
fc2912edd2 Start adding ast build tests. 2025-09-16 00:00:26 -05:00
Jesse Brault
de8e2ba397 Small bugs. 2025-09-15 21:47:10 -05:00
Jesse Brault
608d89645e Add some Default impl. 2025-09-15 21:17:58 -05:00
Jesse Brault
799d8762cd Fix no Pair import. 2025-09-14 21:10:55 -05:00
Jesse Brault
44f6ab10af WIP on enum generation and solving generated errors. 2025-09-14 21:06:58 -05:00
Jesse Brault
300e65a8d3 Add generation for node ast file. 2025-09-14 15:57:06 -05:00
Jesse Brault
b75e51ee41 Fill out build-fn generation for ast nodes. 2025-09-14 15:40:39 -05:00
Jesse Brault
152f5a6150 Start outputting build.rs file from ast gen. 2025-09-14 08:54:06 -05:00
Jesse Brault
e802fc70d8 Move all parser tests to generated tests. 2025-09-14 08:28:06 -05:00
Jesse Brault
6f727e1cdf Refactor UseStatement to an enum type; remove UseStatementLast. 2025-05-29 21:37:07 -05:00
Jesse Brault
234f40ec58 Use ast walking to verify that identifiers have saved symbols and linking symbols are resolved. 2025-05-26 16:24:40 -05:00
Jesse Brault
d38b30b755 Add depth-first traversal (walk_depth_first) to walk.rs. 2025-05-26 12:53:07 -05:00
Jesse Brault
22deb90c3e Move ast nodes to new ast/node module. 2025-05-26 08:30:15 -05:00
Jesse Brault
cbf7921c95 Refactor name-analysis module to use new AST api. 2025-05-26 07:48:35 -05:00
Jesse Brault
20dcb4f6ce Major refactoring of AST module: private properties and accessors, building clearer, using Boxes. 2025-05-25 17:27:15 -05:00
Jesse Brault
41ab922f2c Add interface/class test case. 2025-05-21 12:25:23 -05:00
Jesse Brault
4c68d0dc28 Flesh out gather and resolve, add todos, refactor a bit. 2025-05-20 11:09:06 -05:00
Jesse Brault
0c2d9f8b2f Add primitive type uses and related. 2025-05-19 13:52:42 -05:00
Jesse Brault
abb7aab3a4 Refactoring of name-analysis. 2025-05-19 09:58:43 -05:00
Jesse Brault
c606432be2 Work to properly resolve imports. 2025-05-18 18:29:25 -05:00
Jesse Brault
6b6ba1d712 Major refactor of name analysis and related. 2025-05-18 18:05:03 -05:00
Jesse Brault
4f74136d97 Much work on use-statements and symbols. 2025-05-18 16:18:19 -05:00
Jesse Brault
8cd5e588a0 Add gathering and resolving for various constructs; two-file test still failing but fails correctly. 2025-05-18 10:26:38 -05:00
Jesse Brault
c54e005b62 Add build for platform function. 2025-05-18 09:02:35 -05:00
Jesse Brault
938391ae09 Add use statements. 2025-05-18 08:32:16 -05:00
Jesse Brault
0c18b976d7 Refactor name-analysis for multiple files; set up (failing) test case for multiple files. 2025-05-18 08:00:32 -05:00
Jesse Brault
3026d22750 Remove dbg in assert_builds. 2025-05-17 19:59:07 -05:00
Jesse Brault
e0f2810764 Fix pretty-print operator bug. 2025-05-17 19:53:16 -05:00
Jesse Brault
692411e232 Change grammar to properly allow if, while, and for loops (without confusing it with closures). 2025-05-17 17:30:55 -05:00
Jesse Brault
bf06407d16 Implement if/if-else statements in grammar, build, unparse, and pretty-print. 2025-05-17 12:36:29 -05:00
Jesse Brault
35d616a538 Implement closure in ast building, unparsing, and pretty printing. 2025-05-17 10:32:14 -05:00
Jesse Brault
2de45817d4 Add BacktickString building. 2025-05-17 08:44:39 -05:00
Jesse Brault
78e7271950 Add DString building. 2025-05-17 08:36:55 -05:00
Jesse Brault
bae2048aef Add number literal building to build.rs. 2025-05-16 19:38:53 -05:00
Jesse Brault
17285e84eb Add indexing to build.rs. 2025-05-16 19:29:39 -05:00
Jesse Brault
f5a82c414c Much work to produce better errors during name analysis. 2025-05-16 15:58:42 -05:00