Rizin
unix-like reverse engineering framework and cli tools
|
This is the parser for rizin shell language. See https://tree-sitter.github.io/tree-sitter/creating-parsers for more info on how to create a parser with tree-sitter.
When you update something in grammar.js or src/scanner.c you have to re-generate the parser. The process works as follows:
cd subprojects/rizin-shell-parser ; npm install
export PATH=$PATH:./node_modules/.bin
tree-sitter generate
tree-sitter test
. Use tree-sitter parse ./example-file
if you want to see the syntax tree of a custom input provided in ./example-file