I have a little problem with my .l file
Here is the code in the lex file.
^"#" BEGIN(p_comment); /* print out whole processor line */
And he is an example of the text file to parse:
The problem is that when it parses my text file, the first "#include"
works fine, but at the second and third it doesn't recognize the #
(unknown token). If I remove the circumflex in the lex file, all the
#include are processed correctly. I need the ^ because the # character
needs different processing when it's not at the beginning of the file.
I'm using the latest version of Flex available for Digital Unix 4.0F
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.