grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

Specification CPP

Open warzunder21 opened this issue 5 years ago • 3 comments

please give a link to the specification that you are using

warzunder21 avatar Oct 12 '20 05:10 warzunder21

For what's it's worth, as the files are named CPP14*, I've been assuming that they might correspond to a __cplusplus value of "201402". With that setting (and other settings + other code) my "c/c++ preprocessor" built around the Antlr4 nextToken() methods is somewhat working now; to the point of correctly processing chunks of c/c++ header files from glibc. Now looking at tweaking the parser grammar to get one for the GCC dialects of C/C++. I think the Antlr4 examples are closer to the Clang dialects. Just guessing on that though.

mycroft8 avatar Oct 14 '20 18:10 mycroft8

While working on the grammar, I had used the official CPP14 ISO specification

Marti2203 avatar Apr 14 '21 08:04 Marti2203

https://github.com/antlr/grammars-v4/issues/2475 for newer specification version :)

rusefillc avatar Jan 11 '22 18:01 rusefillc