[antlr-interest] ANTLR 3.0b4 DIGIT-INTEGER grammar question

Ron Blaschke mailing-lists at rblasch.org
Sun Oct 22 09:22:14 PDT 2006


Hello Kay,

Kay Roepke wrote:
> On 22. Oct 2006, at 17:08 , Ron Blaschke wrote:
> 
>> protected
>> DIGIT
>>     :   '0'..'9'
>>     ;
> 
> the protected keyword is for v2. In version 3 that must be fragment.
> Then it works as expected :)

Thanks a lot!  This information would be a fine addition to "Migrating
from ANTLR 2 to ANTLR 3" [1].

[1]
http://www.antlr.org/wiki/display/ANTLR3/Migrating+from+ANTLR+2+to+ANTLR+3

Ron


More information about the antlr-interest mailing list