C preprocessor grammar?

I found a grammer for C preprocesssor as part of C++ grammar. The problem is that I don't know

if I could use it for using it in preprocessing C files. There are some stuff different like identifiers. I there

a C preprocessor grammer designated only for C?

Comments

  • The documentation for your compiler should list the syntax and arguments for the preprocessor directives that can be used with it.

    In general, they are the same for C and C++, because its more to do with the compiler than the actual language the code is written in.

Sign In or Register to comment.