99321a59bb
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.
14 lines
312 B
JavaScript
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 (_) {}
|