I am trying to make a reentrant scanner that relies on start conditions.
I was following along something similar to this guys question:
Writing re-entrant lexer with Flex
And as the one poster mentioned, the scanner will work if you explicitly create the yyscan_t
and pass it as an extra argument. However, I still get the yyg undeclared
error message when using BEGIN <sc>
, etc to manipulate the start condition.
Is this a bug? Should I explicity use the yy_push_state
and yy_pop_state
state functions instead?