[antlr-interest] Question with greedy

Jim Idle jimi at temporal-wave.com
Thu Sep 24 09:38:38 PDT 2009


On 09/24/2009 06:20 AM, Gordon Tyler wrote:
> To exclude the /* and */ would something like this work?
>
> COMMENT
>   	:  '/*'! ( options {greedy=false;} : . )* '*/'!
>    

No :-)



More information about the antlr-interest mailing list