In your lexer when lexical analysis is performed you may want to ignore any multiline C-like comments.
One way to achieve this is to add to your regular expressions in Flex lexer also the following:
"/*" { /* ignore multiline comments. */ register int c; for (;;) { while ((c = input ()) != '*' && c != EOF) ; /* eat up text of comment. */ if (c == '*') { while ((c = input ()) == '*') ; if (c == '/') break; /* found the end. */ } if (c == EOF) { printf ("Error: EOF in comment.\n"); break; } } }
Thank you very much, you saved my life.