Rui Maciel ha scritto:
How is it possible to make yyerror also report the line where an error was
found?
Thanks in advance,
Rui Maciel
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
Use yylineno variable.
See %option yylineno in Flex:
http://flex.sourceforge.net/manual/Options-Affecting-Scanner-Behavior.html#Options-Affecting-Scanner-Behavior
Luca
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison