Tree-sitter grammar for con4m
- This installs a small module that lets your parser be used from Node:
npm install --save nan
- This installs the Tree-sitter CLI itself:
npm install --save-dev tree-sitter-cli
- Ensure the generated binaries are part of your path
export PATH=$PATH:./node_modules/.bin
tree-sitter generate
will generate the C code required to parse con4m- Try the parser out:
tree-sitter parse test_files/test1.con4m
- See debug graph:
tree-sitter parse -D test_files/test1.con4m
See