Hello ! Just in case you don't know this project https://github.com/panda3d/interrogate is library for C++ parsing and they also use a lalr(1) grammar but without need backtracking and without unresolved conflicts https://github.com/panda3d/interrogate/blob/main/src/cppparser/cppBison.yxx . You can see/play with it's grammar here https://mingodad.github.io/parsertl-playground/playground/ (select "Panda3d cppparser (partially working)" from examples then click `Parse` to see a parse tree for the content in `Input source`).
Activity
satya-das commentedon Oct 16, 2024
No, I didn't know about it. Does it parse without preprocessing and retains even preprocessors and comments in the AST?