Skip to content

taekwombo/tree-sitter-cypher

Repository files navigation

tree-sitter-cypher

Cypher grammar for tree-sitter.

Development

Initialising repository

Create test.cql file if you want to run test locally against single file using test:dev npm script:

echo "// Comment" > test.cql

NPM Scripts

Install the dependencies:

npm install

Build parser

npm run build

Run the tests:

npm run test

Run the build and tests in watch mode:

npm run test:watch

Test parser in debug mode against test.cql file:

npm run test:dev

Update openCypher repository, generate tests, and run tests with "-u" flag:

npm run test:regenerate

References