treesitter test
This commit is contained in:
parent
95e22567e7
commit
7bc92aef97
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
target
|
target
|
||||||
|
node_modules/
|
||||||
|
6
experiments/tree-sitter-test/grammar.js
Normal file
6
experiments/tree-sitter-test/grammar.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module.exports = grammar({
|
||||||
|
name: "TestLang",
|
||||||
|
rules: {
|
||||||
|
source_file: $ => "hello"
|
||||||
|
}
|
||||||
|
});
|
21
experiments/tree-sitter-test/package-lock.json
generated
Normal file
21
experiments/tree-sitter-test/package-lock.json
generated
Normal file
@ -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=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
experiments/tree-sitter-test/package.json
Normal file
14
experiments/tree-sitter-test/package.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user