To include in your project.
npm install --save tree-sitter-prolog
-
Clone git
-
Install dependencies
npm install
npm install -g node-gyp
-
Build
npm run build
-
Run
tree-sitter generate
tree-sitter parse examples/example1.pl
tree-sitter test
npm test
- Implement CHR parsing.
- Better match ISO
- Add floats
- Add context to some operators e.g =.. is Var =.. List and is.
Ensure that you have the latest version of tree-sitter-prolog as "tree-sitter-cli": "^0.15.3" is required.