[antlr-interest] ANTLR v2.7.2 - Bug Fix : $FIRST(r) problems in Java, Cpp and C#

mkhozimkhozi rsedivy at videotron.ca
Wed Apr 30 06:36:06 PDT 2003


In Cpp.:
--------

   Prob.: $FIRST(r) conflicts with $FOLLOW(r) because k=2
   Fix .: Line 41 of 

          .\antlr-2.7.2\antlr\actions\cpp\action.g

         Replace.: k=2;
         With   .: k=3;

         NOTE.: k=3 in Java and C#, why not in CPP ?

In Java, Cpp, C#.:
------------------

   Prob.: $FIRST(r) does not work with Arg rule name (r)
   Fix .: Line 223 of 

          .\antlr-2.7.2\antlr\actions\java\action.g
          .\antlr-2.7.2\antlr\actions\cpp\action.g
          .\antlr-2.7.2\antlr\actions\csharp\action.g

         Replace.: if ( a5!=null ) {
                      rule = a5.getText();
                   }

         With   .: if ( a6!=null ) {
                      rule = a6.getText();
                   }

To apply changes, re-build ANTLR as specified in .\antlr-2.7.2
\install.html

    


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list