ligo/tools/lsp/squirrel/grammar/pascaligo/index.js
Anton Myasnikov 99321a59bb
[LIGO-25] Add grammar for ReasonLIGO and move it to squirrel
Problem: Before making parser for ReasonLIGO we need to construct
its grammar so that we can collect *all* errors and simplify our
further work with AST. Also since we use those grammars in squirrel
it would be conscise to use them from the project directory directly.

Solution: Add grammar for ReasonLIGO and move grammar to squirrel.
2020-08-11 13:30:46 +03:00

14 lines
312 B
JavaScript

try {
module.exports = require("./build/Release/tree_sitter_PascaLigo_binding");
} catch (error) {
try {
module.exports = require("./build/Debug/tree_sitter_PascaLigo_binding");
} catch (_) {
throw error
}
}
try {
module.exports.nodeTypeInfo = require("./src/node-types.json");
} catch (_) {}