]> git.saurik.com Git - bison.git/commitdiff
Prepare easier M4 changes.
authorAkim Demaille <demaille@gostai.com>
Tue, 21 Oct 2008 22:08:52 +0000 (17:08 -0500)
committerAkim Demaille <demaille@gostai.com>
Mon, 3 Nov 2008 20:50:11 +0000 (21:50 +0100)
* data/lalr1.cc: Use escaped [] instead of literals to prepare
future changes.

ChangeLog
data/lalr1.cc

index ca2c184f09ab82e4ee2ba2aa7629d9117e232e7e..8f7f37b0f18883818a7148d01612f6c06382e4b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 2008-11-02  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        Initiate further development.
index ca1dfccdd8e83b550368d6a5380ec14c52fe485b..07a301ffe8209e05703012b1125b6adc847f3f89 100644 (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)
        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
     else
-      yyval = yysemantic_stack_[0];
+      yyval = yysemantic_stack_@{0@};
 
     {
       slice<location_type, location_stack_type> slice (yylocation_stack_, yylen);
 
     {
       slice<location_type, location_stack_type> slice (yylocation_stack_, yylen);