Skip to content

imba/treesitter-imba

Repository files navigation

tree-sitter-imba

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.

Development

npm install
npm run generate
npm test

The first checked-in version is a broad grammar intended to parse real Imba syntax and expose useful editor nodes.

Verification

npm test
tree-sitter parse examples/syntax.imba examples/control-flow.imba examples/tags-and-css.imba

The 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages