mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
Change the handling of @s so that they behave exactly like $s.
There is now a pseudo variable @$ (readble and writable), location of the lhs of the rule (by default ranging from the location of the first symbol of the rhs, to the location of the last symbol, or, if the rhs is empty, YYLLOC). * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of yyval. (yyparse): When providing a default semantic action, provide a default location action. (after the $): No longer change `*YYLSP', just stack YYLOC the same way you stack YYVAL. * src/reader.c (read_declarations): Use warns. (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'. (copy_action, case '@'): Likewise. Use a standard error message, to save useless work from translators.
This commit is contained in:
20
ChangeLog
20
ChangeLog
@@ -1,3 +1,23 @@
|
||||
2000-03-17 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Change the handling of @s so that they behave exactly like $s.
|
||||
There is now a pseudo variable @$ (readble and writable), location
|
||||
of the lhs of the rule (by default ranging from the location of
|
||||
the first symbol of the rhs, to the location of the last symbol,
|
||||
or, if the rhs is empty, YYLLOC).
|
||||
|
||||
* src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
|
||||
yyval.
|
||||
(yyparse): When providing a default semantic action, provide a
|
||||
default location action.
|
||||
(after the $): No longer change `*YYLSP', just stack YYLOC the
|
||||
same way you stack YYVAL.
|
||||
* src/reader.c (read_declarations): Use warns.
|
||||
(copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
|
||||
(copy_action, case '@'): Likewise.
|
||||
Use a standard error message, to save useless work from
|
||||
translators.
|
||||
|
||||
2000-03-17 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* bison.s1: Formatting and cosmetics changes.
|
||||
|
||||
Reference in New Issue
Block a user