I have an H.W assignment in which I need to use Bison and flex.
I need to write a yyerror function in the Bison file that will write to the screen the line number in which there was problem (from the input file) and it needs to tell the token on which the Bison has stopped (from the stack it is building)
is there a simple way to do it?
I tried to use the yylineno from the lex file but got errors. every search option for a solution came empty handed :(