A Tree-sitter grammar for EkScript
git clone https://github.com/ekscript/tree-sitter-ekscript
cd tree-sitter-ekscript
npm i
npm run gen # pnpm build
In the root directory, simply:
npm run dev
To create tests, create a *.txt
file in test/corpus folder. Refer to
tree-sitter test
to know how to write tests
To test if the node-bindings are generated properly
npm run build
node test/corpus/test_index.js
should give you an AST
- [nvim-tree-sitter] support
The grammar is easy to understand. Have a look at creating-parsers for more information.
Contribute on the master branch itself if you think this grammar doesn't support anything specific.