Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



Ah yeah I should have said "a library for which the integration is easier than writing my own library from scratch"!


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.


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: