I searched the man page and found this. But… what does it mean? without it my bison file doesnt compile and i would like to know why it doesnt (admittedly i have a few shift/reduce and reduce/reduce errors. But that shouldnt stop it?).
Does anyone have a link to what it actually does or why it would not compile my code?
-y, --yacc
emulate POSIX Yacc
By default, Bison generates one set of file names, but POSIX requires a different set of file names. The
-yflag makes Bison generate the POSIX names instead of its own set of names.For input file name
grammar.y, Bison normally producesgrammar.tab.c(andgrammar.tab.hif you request the header). With the-yflag, Bison producesy.tab.candy.tab.h.Note that the
-yflag should only affect the output file names. It should have no effect on what is acceptable as a grammar, nor on the number of conflicts.Interestingly, on the same grammar, the output is slightly different; the action lines have an empty statement in them: