13 Commits

Author SHA1 Message Date
Will Hawkins ef6b07b54a Make Formatter Happy
Continuous Integration / Grammar Tests (push) Successful in 3m52s
Continuous Integration / Library Format Tests (push) Successful in 4m52s
Continuous Integration / Library Tests (push) Successful in 7m32s
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-06-15 23:37:48 -04:00
Will Hawkins aa12974dd6 compiler: Flesh Out CST Visitor Framework
As a use case, use it to implement text serialization
of the CST.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-06-15 23:37:14 -04:00
Will Hawkins d22776b018 compiler: Refactor Language Element Tags
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-06-15 21:16:52 -04:00
Will Hawkins d7022725ed compiler: Refactor Type Parsers
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-06-15 21:16:23 -04:00
Will Hawkins 6c23cf7458 Refactor P4Compiler to P4Parser
Continuous Integration / Grammar Tests (push) Successful in 36s
Continuous Integration / Library Format Tests (push) Successful in 1m46s
Continuous Integration / Library Tests (push) Successful in 4m23s
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-06-12 23:23:54 -04:00
Will Hawkins 6dba17c97a Refactor Parsing -> Compiling
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-03-02 08:25:29 -05:00
Will Hawkins cfe78a9b29 Semicolon Cleanup
1. Semicolons were required in the wrong spot.
2. Make semicolons "invisible" (from the tree-sitter perspective).

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-27 08:23:27 -05:00
Will Hawkins 2c5bfc3e1c Start Moving Away From Queries
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-27 06:16:14 -05:00
Will Hawkins a2335a01ed Initial Support For If Statements
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 06:08:12 -05:00
Will Hawkins 5dbb8d3d60 Make Formatter Happy
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:44:04 -05:00
Will Hawkins b4c5ce55e1 Remove Debugging Print
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:30:40 -05:00
Will Hawkins 64a0fe4255 Refactor Parsing/Runtime
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:28:41 -05:00
Will Hawkins f9353c683e Use Generic Scope for Lexical Scope
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 00:28:04 -05:00