Commit Graph

4 Commits

Author SHA1 Message Date
hgranthorner
ba5d8aba7b Phase 1 gate: Tier 0 corpus lexer invariants over the whole Jai distribution
Lexes all 714 .jai files (17.1M chars, 3.0M tokens) and asserts round-trip
tiling, strict offset progress, and zero BAD_CHARACTER. Green on first run.

jaitest: use cleanTest and retry once when a concurrent Gradle run clobbers
build/test-results (java.io.EOFException with no XML).
2026-08-04 10:25:01 -04:00
hgranthorner
4469283024 Phase 1: hand-written Jai lexer + Tier 1 golden token tests
JaiLexer mirrors compose_new_token in the compiler's own lexer. Nested block
comments and here-strings are each consumed inside a single token, so the lexer
state is always 0 and it can restart at any token boundary.

13 plain-JUnit tests, one per gotcha in the language reference §14.
2026-08-04 10:22:58 -04:00
hgranthorner
711334885b Phase 0: strip JetBrains template, register Jai language and file type
- delete demo tool window + message bundle, rewrite plugin.xml metadata
- add JaiLanguage, JaiFileType, file icon, JaiTokenTypes (from the compiler's
  own lexer: modules/Jai_Lexer/module.jai)
- add ./jaitest: runs tests and reports the JUnit XML, not just the exit code
- ignore .kotlin
2026-08-04 10:19:11 -04:00
hgranthorner
cb5a1d9555 initial commit 2026-08-04 10:12:15 -04:00