[antlr-interest] Re: Help on syntactic predicate
kelvin7600
kelvin7600 at yahoo.com
Sun Dec 14 18:11:39 PST 2003
Both of the methods below worked for me, thanks!
I am using the 2.7.3 development snapshot with VC7.
>
> WORD : (ALPHABET)+ {$setType(WORD);} ( (DIGIT)+ {$setType
(ALPHANUM);} )? ;
>
> WORD : ( (ALPHABET)+ DIGIT ) => (ALPHABET)+ (DIGIT)+ {$setType
(ALPHANUM);}
> | (ALPHABET)+
> ;
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list