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

Terence Parr parrt at jguru.com
Wed Apr 30 09:24:07 PDT 2003


Thanks!  I have updated the main line :)

Terence

On Wednesday, April 30, 2003, at 06:36  AM, mkhozimkhozi wrote:

>
> 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/
>
>
>
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Co-founder, http://www.peerscope.com link sharing, pure-n-simple
Lecturer in Comp. Sci., University of San Francisco


 

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




More information about the antlr-interest mailing list