Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

tree-sitter-gofra

Gofra grammar for tree-sitter.

Gofra is a stack-based (RPN) language that compiles to native code, so an expression is a flat sequence of operands and operators. Blocks are keyword delimited (if ... else ... end, while ... do ... end).

Layout

  • grammar.js — the grammar definition
  • src/parser.c — the generated parser (committed, so that the grammar can be consumed without running the tree-sitter CLI)
  • queries/highlights.scm — syntax highlighting queries
  • test/corpus/ — parser tests

Usage

tree-sitter generate   # regenerate src/parser.c after changing grammar.js
tree-sitter test       # run the corpus tests
tree-sitter highlight path/to/file.gof

The grammar is used by the Gofra extension for Zed.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages