GitHub - jasonjmcghee/basic-treesitter-cranelift-jit: Simple live calculator in tree-sitter + cranelift jit
Basic tree-sitter + cranelift jit
A basic working example of tree-sitter + cranelift jit.
There's really one core file - I could break it up, but wanted it to be in one place for this basic example.
The one core file
Here's the grammar.
Video
calc-demo.mp4
Testing things
You can run the repl (using crossterm)
Or do a little stress test (using cross term)
cargo run --example stress
Benchmarks
Also some simple benchmarks.
Very similar to the "stress" test
cargo bench --bench calculator_random_benc...
Read more at github.com