Bootstrap tree-sitter parser architecture

This commit is contained in:
Bruno BELANYI 2022-06-01 16:23:43 +02:00
parent 4b1d0f7744
commit 30b2e50367
12 changed files with 638 additions and 0 deletions

19
bindings/node/index.js Normal file
View file

@ -0,0 +1,19 @@
try {
module.exports = require("../../build/Release/tree_sitter_tiger_binding");
} catch (error1) {
if (error1.code !== 'MODULE_NOT_FOUND') {
throw error1;
}
try {
module.exports = require("../../build/Debug/tree_sitter_tiger_binding");
} catch (error2) {
if (error2.code !== 'MODULE_NOT_FOUND') {
throw error2;
}
throw error1
}
}
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}