Use npx instead in rzshell build insns (#4331)

This commit is contained in:
Khairul Azhar Kasmiran 2024-03-05 22:04:47 +08:00 committed by GitHub
parent de1b126b5d
commit d3c05ca730
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,9 +18,8 @@ the parser. The process works as follows:
1. Do changes as needed to grammar.js and/or src/scanner.c
2. Install npm dependencies with: `cd subprojects/rizin-shell-parser ; npm install`
3. Make sure tree-sitter is in PATH: `export PATH=$PATH:./node_modules/.bin`
4. Re-generate the parser files: `tree-sitter generate`
5. Check tests still pass: `tree-sitter test`. Use `tree-sitter parse
3. Re-generate the parser files: `npx tree-sitter generate`
4. Check tests still pass: `npx tree-sitter test`. Use `npx tree-sitter parse
./example-file` if you want to see the syntax tree of a custom input provided
in `./example-file`
6. Commit auto-generated files and modified grammar.js and src/scanner.c into git.
5. Commit auto-generated files and modified grammar.js and src/scanner.c into git.