Using syntax librairies?



I work on a parser generator ( )‌ and we store the locations of the parsed text into syntex_pos::Span which is useful to print beautiful error messages using syntex_errors after the parsing stage. Unfortunaly, syntex is no longer maintained and we would like to use the “official” syntax libraries. This is also because we are designing a Oak extension that directly parses on the TokenStream structure (which is from the Rust library, and we have a hard time converting rust::Span to syntex::Span due to private fields…).

What is the current status on this matter?

Thanks for any information.

Best, Marin


IMO, the current best solution is to use something like syn.