A grammar to test your Tree-sitter development workflow
It does work with node 11.10, but not with 12.x at the moment.
**
After checkout run npm install.
For Windows-users, run the windows scripts.
The most important files are the following ones:
- grammar.js defines the grammar
- corpus/xyt.txtt contains tests against the generated parser.
To run the tests, run the test-script.
At the moment, the two tests on timespans fail: it is quite hard to come up with a way to parse them correctly and not interpret them as another symbol defined in the grammar (in this case an object-reference).
It works with node 12.x when installing tree-sitter-cli globally: npm install -g tree-sitter-cli npm install --> may lead to error when rebuilding node-gyp, it worked nonetheless ./node_modules/.bin/node-gyp configure run the build-windows script