mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* data/yacc.c (YY_LOCATION_PRINT): New.
Define when we know YYLTYPE's structure, i.e., when the default YYLLOC_DEFAULT is used. * data/c.m4 (b4_yysymprint_generate): Use it. * data/lalr1.cc (YYLLOC_DEFAULT): Stop relying on the initial value of the result. (error_start_): Replace with... (error_range_): this location array. This allows to replace code relying on the implementation of locations by portable code. * data/yacc.c (yylerrsp): Replace with... (yyerror_range): this. Every time a token is popped, update yyerror_range[0], to have an accurate location for the error token. * data/glr.c (YY_LOCATION_PRINT): New. (yyprocessOneStack): Fix an invocation of YY_SYMBOL_PRINT: deference a pointer. * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): No longer report the location in %printers. * src/scan-skel.l: Instead of abort, report error messages to ease understanding skeleton scanning failures.
This commit is contained in:
25
ChangeLog
25
ChangeLog
@@ -1,3 +1,28 @@
|
||||
2004-09-20 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* data/yacc.c (YY_LOCATION_PRINT): New.
|
||||
Define when we know YYLTYPE's structure, i.e., when the default
|
||||
YYLLOC_DEFAULT is used.
|
||||
* data/c.m4 (b4_yysymprint_generate): Use it.
|
||||
* data/lalr1.cc (YYLLOC_DEFAULT): Stop relying on the initial
|
||||
value of the result.
|
||||
(error_start_): Replace with...
|
||||
(error_range_): this location array.
|
||||
This allows to replace code relying on the implementation of
|
||||
locations by portable code.
|
||||
* data/yacc.c (yylerrsp): Replace with...
|
||||
(yyerror_range): this.
|
||||
Every time a token is popped, update yyerror_range[0], to have an
|
||||
accurate location for the error token.
|
||||
* data/glr.c (YY_LOCATION_PRINT): New.
|
||||
(yyprocessOneStack): Fix an invocation of YY_SYMBOL_PRINT:
|
||||
deference a pointer.
|
||||
* tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): No longer
|
||||
report the location in %printers.
|
||||
|
||||
* src/scan-skel.l: Instead of abort, report error messages to ease
|
||||
understanding skeleton scanning failures.
|
||||
|
||||
2004-09-16 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* data/lalr1.cc (Stack::Iterator, Stack::ConstIterator): Rename as...
|
||||
|
||||
Reference in New Issue
Block a user