Hello, fellow Rusters.
I’m proudly presenting my port of the LEMON Parser Generator, written by D. Richard Hipp (of SQLite fame) to generate Rust code instead of C code.
You can find it here: lemon_rust. The documentation is still a bit a WIP, but it will come out, eventually…
The generator itself is still written in C. I’d like to port it also to Rust, but for that I’ll need to understand it better yet. And it might complicate integrations of future upstream changes, so I’m leaving it as it is for now.
I’ll appreciate any feedback you may have. And please consider it for your future Rust parsing necessities
In particular I would like to know if there is any feature similar to the C directive
#line for Rust to redirect errors from generated code.
Thank you in advance.