I would like to build a cpp parser using cpp and I’m using ANTLR4. I notice there is this ‘grammar’ section from the official github antlr grammar github and I’ve downloaded it. While opening the CPP file inside, I notice there is a CPP14Parser and a CPP14Lexer, also there’s another CPP file with a CPPParser in it. I’ve been running through the documentations for days but it seems it was outdated. I’ve tried running antlr-4 but later I kept getting and error when trying to compile it. However, the CMakeLists.txt and main(basically all other file) I wrote does work on an older version where things are more clean The version I successfully build. Can somene please teach me how to build the latest version of current grammar? Please let me know if any more specific context is needed! Thanks in advance!
TLDR:If possible, please guide me on how to build the latest version of antlr grammar.
Sorry if I’m not making things clear or making any sily mistake, it’s my first question here.
Shawn Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.