GitHub - jasonjmcghee/basic-treesitter-cranelift-jit:在 tree-sitter + cranelift jit 中的简单实时计算器

  • Basic tree-sitter + cranelift jit: A basic working example with one core file at [https://github.com/jasonjmcgh...] and the grammar at [https://github.com/jasonjmcgh...].
  • Video: A video named calc-demo.mp4 with the source at [https://private-user-images.g...].
  • Testing things: Can run the repl using cargo run --release or do a stress test using cargo run --example stress.
  • Benchmarks: Simple benchmarks similar to the "stress" test with cargo bench --bench calculator_random_bench and a more basic non-random one with cargo bench --bench calculator_bench.
  • Modifying things: Modifying the grammar at [https://github.com/jasonjmcgh...] will cause cargo build in the main project to update everything as needed, like in the main binary for syntax highlighting.
阅读 31
0 条评论