flex yourfile.l g++ -x c++ lex.yy.c -ll
slurpy -> slimp slump slimp -> A rest_slimp rest_slimp -> H rest_slimp -> B slimp C rest_slimp -> slump C slump -> d_or_e F f_string end d_or_e -> D d_or_e -> E f_string -> F f_string | lambda end -> slump end -> G Some strings in the language: AHDFG, ADFGCDFFFFFG, ABAEFGCCDFEFFFFFFG Some strings NOT in the lanuage: AHDFGA, DFGAH, ABABCC
As with the earlier flex stuff, you need to use the -ll library. For bison, you also need -ly. The correct use:
flex file.l bison -vd file.y g++ -x c++ file.tab.c lex.yy.c -ly -ll