[antlr-interest] fragment and option greedy=false

Hendrik Maryns qwizv9b02 at sneakemail.com
Wed Nov 12 04:09:32 PST 2008


Sam Harwell schreef:
> COMMENT
>     : '/*'
>       (   (~'*' | '*' ~'/') => VALID_CHAR
>       )*
>       '*/'
>     ;

Why not simply

 (~'*/') => VALID_CHAR

?

H.
-- 
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20081112/1446e384/attachment.bin 


More information about the antlr-interest mailing list