10 Commits

Author SHA1 Message Date
hgranthorner
c6b30e32d6 Add unresolved import and load inspection 2026-08-06 16:18:34 -04:00
hgranthorner
8fcd2cca05 Document formatter support 2026-08-06 15:50:54 -04:00
hgranthorner
98e25c5468 improved completion 2026-08-05 16:32:40 -04:00
hgranthorner
ede8522716 Document completion scope and gaps 2026-08-05 10:43:30 -04:00
hgranthorner
2bc1b9f4be Phase 5a: add configurable Jai module roots 2026-08-05 10:24:32 -04:00
hgranthorner
9122b5a5c0 Document configurable module roots as next phase 2026-08-04 16:01:59 -04:00
hgranthorner
460fc969db Phase 5: add rename and find usages 2026-08-04 15:54:31 -04:00
hgranthorner
37809b8aa7 Phase 3: Grammar-Kit parser, PSI and ParserDefinition
Adds src/main/grammar/Jai.bnf, the generated parser/PSI in src/main/gen, a
JaiParserDefinition, and the Tier 3 corpus parse gate (406/714 files clean).

Two things were not obvious:

- Grammar-Kit mints its own token instances from the .bnf 'tokens' block, which
  are different objects from the ones JaiLexer emits, so every rule silently
  failed to match. Fixed with tokenTypeFactory -> JaiTokenTypes.byName.
- A backslash inside an identifier is a continuation in the compiler's lexer
  (Jai_Lexer/module.jai:444): 'left\_margin' is one identifier. JaiLexer now
  does the same; the Tier 0 round-trip still holds because the token span
  covers the backslash and the skipped spaces.

Constructs that BNF alone cannot express live in JaiParserUtil: directive-name
tests (#ident is one token), '==' before '{' for the switch form, procedure
header vs parenthesised expression, and the declaration lookahead.
2026-08-04 12:05:42 -04:00
hgranthorner
746647d27d Build an installable plugin ZIP: real README/CHANGELOG, cache-poisoning recovery
- README documents install-from-disk and what actually works today
- jaitest prints the recovery steps when a poisoned build cache makes
  :test report NO-SOURCE, and AGENTS.md records the failure mode
2026-08-04 10:42:10 -04:00
hgranthorner
cb5a1d9555 initial commit 2026-08-04 10:12:15 -04:00