Prepare easier M4 changes.

* data/lalr1.cc: Use escaped [] instead of literals to prepare
	future changes.
This commit is contained in:
Akim Demaille
2008-10-21 17:08:52 -05:00
parent c9ba9e5978
commit 91ba8a55b1
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2008-11-03 Akim Demaille <demaille@gostai.com>
Prepare easier M4 changes.
* data/lalr1.cc: Use escaped [] instead of literals to prepare
future changes.
2008-11-02 Joel E. Denny <jdenny@ces.clemson.edu>
Initiate further development.

View File

@@ -664,9 +664,9 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
This behavior is undocumented and Bison
users should not rely upon it. */
if (yylen)
yyval = yysemantic_stack_[yylen - 1];
yyval = yysemantic_stack_@{yylen - 1@};
else
yyval = yysemantic_stack_[0];
yyval = yysemantic_stack_@{0@};
{
slice<location_type, location_stack_type> slice (yylocation_stack_, yylen);