radare2/shlr/radare2-shell-parser/index.js
Riccardo Schirone 06ab29b93c
Compile new shell parser by default (#16660)
* Move radare2-shell-parser/tree-sitter into shlr
* compile new shell parser by default, available with cfg.newshell variable
* Add README for radare2-shell-parser
* Improve CI
* Add gitattributes file
2020-04-21 13:44:30 +02:00

14 lines
304 B
JavaScript

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