I am trying to parse the syntax of a C file using pycparser. I send the C file through a preprocessor and then send the output of the preprocessor to be parsed by pycparser
. The following code is in one of the C files ...
extern "asm"
{
extern void ASM_Function(void);
}
pycparser
throws and exception telling me this is not valid C syntax. Looking at the C BNF the keyword extern
does not allow a string literal to precede it. I am correct in reading the BNF? Was this extern functionality added in a later version of C or is this syntax compiler specific?