Akim Demaille wrote: > AFAIK, Flex does not generate a header file with its definitions such > as start conditions, so you probably need to write a small wrapper > around flex that extracts it from the generated scanner *.c file. > Then, from the grammar file, just include that extracted file from > like any other.
Flex does generate a header file, which also holds the definitions for the start conditions. You can try it out by running the following: flex --header-file=lex.yy.h test.l If you defined starting conditions on your test.l file then the lex.yy.h will hold the definitions. Unfortunately they are enclosed in a #define statement. Rui Maciel _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison