Commit ba521a6
fix(D19/T52): wire Grammar-Kit generateLexer/generateParser; regenerate src/main/gen
- Add org.jetbrains.grammarkit 2022.3.2.2 plugin to build.gradle.kts
- Wire generateLexer (Baboon.flex → gen/language/BaboonLexer.java) and
generateParser (Baboon.bnf → gen/) tasks; compileKotlin/compileJava depend on them
- Regenerate gen: BaboonTypes.java now defines KW_ID, KW_HAS, KW_MIRROR,
KW_PRAGMA, KW_TYPE (fixes unresolved-reference errors in BaboonTokenType.kt)
- New PSI types generated: BaboonExtractionDef, BaboonIdDef, BaboonPragma,
BaboonPragmaKey, BaboonTemplateHead, BaboonTypeAlias (and Impl counterparts)
- Updated BaboonParser.java from stale idealingua-era version to current BNF
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fbd8452 commit ba521a6
27 files changed
Lines changed: 2092 additions & 1358 deletions
File tree
- src/main/gen/io/septimalmind/baboon/baboonintellij
- language
- psi
- impl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
80 | 103 | | |
81 | 104 | | |
82 | 105 | | |
Lines changed: 277 additions & 231 deletions
Large diffs are not rendered by default.
0 commit comments