The structures of Bison/Yacc are as following:
For more information, please type -man
bison or go to the link provide on left
hand side.
Bison/Yacc
bash$ bison -d calc.y
bash$ gcc –o calc *.c –ll –lm
bash$ calc
ç
generate calc.tab.h and
calc.tab.c files.
without -d, then only calc.tab.c file will
be generated.
ç
create "calc" object, which will be the
executable for the calculator. Note that
the -ll and -lm sometimes -ld are just
some of the linking commnad.
ç run the calculator