tree-sitter-ekscript

EkScript grammar for tree-sitter

Usage no npm install needed!

<script type="module">
  import treeSitterEkscript from 'https://cdn.skypack.dev/tree-sitter-ekscript';
</script>

README

tree-sitter-ekscript

A Tree-sitter grammar for EkScript

EkScript website

Get Started

Installation

git clone https://github.com/ekscript/tree-sitter-ekscript
cd tree-sitter-ekscript
npm i

To generatate C parser files:

npm run gen # pnpm build

Development

In the root directory, simply:

npm run dev

Tests

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

Highlighting tests

ROADMAP

  • [nvim-tree-sitter] support

Contribution

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.

License

MIT