tree-sitter/cli/generate
Antonin Delpeuch 3bd8f7df8e perf: More efficient computation of used symbols
As the call to `symbol_is_used` does not depend
on the production, it is more efficient to call it
only once outside the loop over productions.

I'm not sure if `rustc` is able to do this optimization
on its own (it would need to know that the function
is pure, which sounds difficult in general).

(cherry picked from commit 36d93aeff3)
2025-07-10 09:25:22 +02:00
..
src perf: More efficient computation of used symbols 2025-07-10 09:25:22 +02:00
Cargo.toml fix(generate): re-enable default url features 2025-06-04 10:56:00 +02:00
README.md feat: move generate logic to its own crate 2024-09-27 17:04:21 -04:00

Tree-sitter Generate

This helper crate implements the logic for the tree-sitter generate command, and can be used by external tools to generate a parser from a grammar file.