From 7bc92aef97b2588e21acd2fcbf57c3a368cd99ff Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sun, 21 Apr 2024 02:25:56 -0700 Subject: [PATCH] treesitter test --- .gitignore | 1 + experiments/tree-sitter-test/grammar.js | 6 ++++++ .../tree-sitter-test/package-lock.json | 21 +++++++++++++++++++ experiments/tree-sitter-test/package.json | 14 +++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 experiments/tree-sitter-test/grammar.js create mode 100644 experiments/tree-sitter-test/package-lock.json create mode 100644 experiments/tree-sitter-test/package.json 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" + } +}