News for hackers. Stuff that matters.
Re:Rust-sitter: Define your entire tree-sitter grammar in Ru... by dlahoda on Wednesday February 22, 2023 @05:16PM (#34903749)
does it support callbacks to handle semantic space languages like haskell and python?
Re:Rust-sitter: Define your entire tree-sitter grammar in Ru... by shadaj on Wednesday February 22, 2023 @11:50PM (#34906910)
Not yet, but this is something I've been investigating. The general plan is to have safe Rust bindings to the underlying Tree Sitter APIs used by custom scanners, and then have the Rust Sitter proc macro expose a Rust scanner as an `extern` function that the Tree Sitter runtime can call back to.