In Linux,
Yacc is a script which calls Bison (Yacc supported utility on Linux).
Lex is a script which calls Flex (Lex supported utility on Linux).
If you face linking issue for lex, please change "-ll" to "-lfl". Yacc should work with "-ly" as usual.
If you get following error,
"error: macro "yywrap" passed 1 arguments, but takes just 0"
Change "#define yywrap() 1" to "%option noyywrap".
Note put this option line outside of %{ ...}% section. This section is for the code which needs to get directly into the generated .c file.
No comments:
Post a Comment