Grammar railroad diagram #3242
Replies: 5 comments
-
And here is the preprocessor
|
Beta Was this translation helpful? Give feedback.
-
Are you reporting a problem or bug that you have found in the grammar? |
Beta Was this translation helpful? Give feedback.
-
Sorry ! None of then, I'm reporting an alternative view of the grammar for debug, development, documentation and understand purposes. |
Beta Was this translation helpful? Give feedback.
-
Gotcha. It would probably be best to convert this issue to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to recreate the parsers from this? If so I think it would be helpful for getting a c++ parser started. |
Beta Was this translation helpful? Give feedback.
-
Using this tool https://www.bottlecaps.de/convert/ we can see a railroad diagram for the grammar in
Ghidra/Features/Base/src/main/javacc/ghidra/app/util/cparser/C/C.jj
copy and paste the EBNF shown bellow on https://www.bottlecaps.de/rr/ui in the tab Edit Grammar then switching to the tab View Diagram.Beta Was this translation helpful? Give feedback.
All reactions