From: Marcel L. <ma...@la...> - 2009-03-05 12:09:58
|
I'm trying to figure out exactly why I'm not getting a definition of yy_push_state and yy_pop_state in my scanner. I can find the definitions in flex.skl but I'm having problems discerning why they aren't being included when I run flex on my lexical file. See this example: marcel@fantasma tmp $ flex -V flex 2.5.35 marcel@fantasma tmp $ cat test.l %s TEST %% <INITIAL>{ "foo" yy_push_state(TEST); } marcel@fantasma tmp $ flex -o test.cpp test.l marcel@fantasma tmp $ grep 'push_state' test.cpp yy_push_state(TEST); marcel@fantasma tmp $ cc test.cpp test.l: In function ‘int yylex()’: test.l:5: error: ‘yy_push_state’ was not declared in this scope |