Replies: 2 comments
-
No, I didn't know about it. Does it parse without preprocessing and retains even preprocessors and comments in the AST? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I checked. I don't think the interrogate preserves comments and preprocessors, these are something very important for the CppParser. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 inInput source
).Beta Was this translation helpful? Give feedback.
All reactions