Last active
June 27, 2025 09:29
-
-
Save sogaiu/aa1ad614ed9b8a29b5a29e558e305682 to your computer and use it in GitHub Desktop.
playground test with tree-sitter a9818e4b171000eded8944bb2b49f1c68dbac7e3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp | |
git clone https://github.com/tree-sitter/tree-sitter | |
cd tree-sitter | |
cargo build --release | |
cd .. | |
git clone https://github.com/sogaiu/tree-sitter-janet-simple | |
cd tree-sitter-janet-simple | |
../tree-sitter/target/release/tree-sitter generate --abi 14 | |
../tree-sitter/target/release/tree-sitter build --wasm | |
# works when there is a network connection | |
../tree-sitter/target/release/tree-sitter playground | |
# emsdk enabled plus the following may be needed before `cargo build --release` | |
# to have an offline-enabled `playground` subcommand | |
cd lib/binding_web | |
npm install # or your JS package manager of choice | |
npm run build | |
# references | |
# | |
# https://tree-sitter.github.io/tree-sitter/6-contributing.html#building |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment