Some macros are defined in header files which I cannot get them. So if antlr scans and parses the source code, there are always 'NullPointerException' because macro cannot match any rules.
int print() {
char* label = "hello, the world";
LOG(label) // `LOG` is macro which I can't find its definition, antlr will crash because there isn't ';' at end of line.
return 0;
}how to tell antlr to skip `LOG(label)`.I don't care the parsing result is right or wrong. I only want antlr to continue scanning the other parts of the file.
LOG_MACRO: 'LOG(' ~')'* ')' -> channel(IGNORED_MACROS);