Re:Rust-sitter: Define your entire tree-sitter grammar in Ru...
by shadaj on Wednesday February 22, 2023 @11:59PM
(#34906960)
In principle, yes, you can use the `rust-sitter-tool` crate to generate the Tree Sitter JSON definition and then compile it to a standalone parser. The grammar is auto-generated though so it may be a bit trickier to integrate into other tooling? The general problem of exporting just the grammar is something that's been on my radar, but haven't had a chance to think through it too deeply yet.
[ Parent
| on HN ]
There are no comments on this comment yet.