Re:Topiary: A code formatting engine leveraging Tree-sitter
by hardwaregeek on Saturday May 20, 2023 @05:20PM
(#36015735)
Chumsky is so good for parsing. I’m not a huge combinator fan but man, it works so well. If only the errors weren’t so horrendous.
My only issue with it is that it really only does half the job. You get a CST of sorts, but if you want to do anything with it you pretty much have to hand write another parser for that node tree.
In contrast parser combinator libraries like Nom and Chumsky give you "the final output".