News for hackers. Stuff that matters.
Re:Pratt Parsers: Expression Parsing Made Easy (2011) by secondcoming on Saturday January 20, 2024 @09:17AM (#39067735)
There is Boost.Spirit. We use it but I find its cleverness just results in incomprehensible code.

https://www.boost.org/doc/libs/1_84_0/libs/spirit/classic/do...

Re:Pratt Parsers: Expression Parsing Made Easy (2011) by timhh on Saturday January 20, 2024 @10:48AM (#39068726)
Ah yeah I should have said "a library for which the integration is easier than writing my own library from scratch"!
Re:Pratt Parsers: Expression Parsing Made Easy (2011) by amag on Saturday January 20, 2024 @07:06PM (#39073972)
Last I used it, even pretty small grammars took forever to build. I had to be very diligent not to let the grammar cpp-file depend on anything else in my codebase.
Re:Pratt Parsers: Expression Parsing Made Easy (2011) by nly on Sunday January 21, 2024 @05:08PM (#39083593)
It wouldn't be efficient for expression parsing. Spirit is a recursive descent parser.