Parser: cover full Jai corpus

This commit is contained in:
hgranthorner
2026-08-04 13:44:59 -04:00
parent 8265389f64
commit bb54639ce5
21 changed files with 649 additions and 113 deletions

View File

@@ -13,12 +13,11 @@
- Comment/uncomment support and brace matching, including `.{` and `.[`
- Grammar-Kit parser and PSI for the whole language: declarations, procedures,
structs, enums, unions, control flow including the `if x == { case }` switch
form, and compiler directives. 91.9% of the 714-file Jai distribution parses
with no syntax errors.
form, and compiler directives. The full 714-file Jai distribution parses with
no syntax errors; `JaiCorpusParserTest` is ratcheted at 100%.
### Known gaps
- 58 files in the Jai distribution still report a syntax error; each involves a
construct used in only one or two files. `#asm` bodies are parsed as opaque
blocks.
- `#asm` bodies are parsed as opaque blocks, so their assembly instructions do
not have inner PSI.
- Structure view, folding, and go-to-definition are not implemented yet.