News for hackers. Stuff that matters.
Re:Rust-sitter: Define your entire tree-sitter grammar in Ru... by hardwaregeek on Wednesday February 22, 2023 @04:07PM (#34902745)
I'm super excited about the ability to get good quality bindings to tree-sitter! Tree-sitter is a very cool project but it needs a little love in a few regards. A better WebAssembly story, good bindings, and the ability to construct trees synthetically (to facilitate code generation) would make it a really remarkable tool.

As for rust-sitter, it's a very promising direction. The error story needs a little work. I found it pretty hard to debug issues with my grammar. And it is slightly annoying having all those extra () fields in the struct, but that's really a minor complaint.

Re:Rust-sitter: Define your entire tree-sitter grammar in Ru... by shadaj on Wednesday February 22, 2023 @11:49PM (#34906899)
Yeah, definitely agree on WebAssembly! We have https://github.com/shadaj/tree-sitter-c2rust for running Tree Sitter on WASM via Rust, but definitely more potential in that direction. And very much agree on the error story needing work, right now it's mostly `panic`s everywhere and could definitely be improved with richer diagnostics.