diff --git a/.gitignore b/.gitignore index eb5a316..f06ea27 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ target +node_modules/ diff --git a/experiments/tree-sitter-test/grammar.js b/experiments/tree-sitter-test/grammar.js new file mode 100644 index 0000000..f86112b --- /dev/null +++ b/experiments/tree-sitter-test/grammar.js @@ -0,0 +1,6 @@ +module.exports = grammar({ + name: "TestLang", + rules: { + source_file: $ => "hello" + } +}); diff --git a/experiments/tree-sitter-test/package-lock.json b/experiments/tree-sitter-test/package-lock.json new file mode 100644 index 0000000..a88b470 --- /dev/null +++ b/experiments/tree-sitter-test/package-lock.json @@ -0,0 +1,21 @@ +{ + "name": "tree-sitter-test", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "tree-sitter-test", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "nan": "^2.19.0" + } + }, + "node_modules/nan": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", + "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==" + } + } +} diff --git a/experiments/tree-sitter-test/package.json b/experiments/tree-sitter-test/package.json new file mode 100644 index 0000000..047d108 --- /dev/null +++ b/experiments/tree-sitter-test/package.json @@ -0,0 +1,14 @@ +{ + "name": "tree-sitter-test", + "version": "1.0.0", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "description": "", + "dependencies": { + "nan": "^2.19.0" + } +}