|
From: | Luca Marzolla |
Subject: | Re: How to make yyerror() report line? |
Date: | Thu, 15 Oct 2009 22:17:46 +0200 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
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 _______________________________________________ address@hidden 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
[Prev in Thread] | Current Thread | [Next in Thread] |