[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
yyerror() location tracking
From: |
Tom Stellard |
Subject: |
yyerror() location tracking |
Date: |
Sat, 16 Jan 2010 22:18:08 -0800 |
User-agent: |
Mutt/1.5.16 (2007-06-09) |
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
test.y
Description: Text document
- yyerror() location tracking,
Tom Stellard <=