From d3c05ca730df774a9fe51386ca1c4a7073a70870 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Tue, 5 Mar 2024 22:04:47 +0800 Subject: [PATCH] Use `npx` instead in rzshell build insns (#4331) --- subprojects/rizin-shell-parser/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/subprojects/rizin-shell-parser/README.md b/subprojects/rizin-shell-parser/README.md index 1d8b35be63..db482ed8b4 100644 --- a/subprojects/rizin-shell-parser/README.md +++ b/subprojects/rizin-shell-parser/README.md @@ -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.