Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
secondcoming
on Jan 20, 2024
|
parent
|
context
|
favorite
| on:
Pratt Parsers: Expression Parsing Made Easy (2011)
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...
timhh
on Jan 20, 2024
|
next
[–]
Ah yeah I should have said "a library for which the integration is easier than writing my own library from scratch"!
amag
on Jan 21, 2024
|
prev
|
next
[–]
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.
nly
on Jan 21, 2024
|
prev
[–]
It wouldn't be efficient for expression parsing. Spirit is a recursive descent parser.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://www.boost.org/doc/libs/1_84_0/libs/spirit/classic/do...