|
I've only compiled Lex and Yacc files only with C.
The Lex commands should be:
lex LexParse.l <-- makes lex.yy.c file
gcc lex.yy.c -ll <-- to compile the lex file made from previous step. -ll is used tell the compiler to use the lex libraries.
This Yacc command using the Lex file should be:
yacc Yacc.y <-- makes y.tab.c file
lex LexParse.l <-- makes lex.yy.c file
gcc lex.yy.c y.tab.c -ly -ll <-- to combine the lex and yacc file together.
|