Hi, I am trying to add line numbers to my parser's error messages. I have included the options, %locations and %define api.pure in my bison definition file, but it seems to be generating yyerror with this signature: yyerror(const char *msg); instead of the signature I am expecting: yyerror (YYLTYPE *locp, const char * msg) I have attached the bison definition file I am trying to use. Thanks.
-Tom
%{ #include<stdio.h> %} %locations %define api.pure %token CLASS %% program: CLASS ; %% void yyerror (YYLTYPE *locp, char const *s) { fprintf(stderr, "%s", s); }
_______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison