Tree-sitter grammar for Imba.
This package is intentionally source-driven: PLAN.md records the mapping from
the compiler Jison grammar, compiler lexer/rewriter, Monarch grammar, and VS
Code TextMate syntax into this grammar.
npm install
npm run generate
npm testThe first checked-in version is a broad grammar intended to parse real Imba syntax and expose useful editor nodes.
npm test
tree-sitter parse examples/syntax.imba examples/control-flow.imba examples/tags-and-css.imbaThe generated parser currently keeps its maximum parse-action index below
Tree-sitter's uint16_t small-table limit. A few high-complexity language
areas are therefore intentionally conservative in this first pass: tag literals
are lexical, stacked declaration modifiers are simplified, and general
command-call statements are deferred.