[antlr-interest] ANTLR 3.0b5 problem with predicates
Micheal J
open.zone at virgin.net
Fri Nov 24 04:45:23 PST 2006
Hi,
> "greedy=false" works great if I want to include the
> terminating characters in the token. But if I merely want to
> stop the catchall prior to some tokens, I really need a predicate.
> As I stated in my previous post, the cpp_parser grammar uses
> { input.LA(2)!='/' }? '*'
> The java1.5 sample uses the same method to terminate the
> multi-line comment.
>
> I still think that this is a bug.
You're talking about V2 grammars right?
Micheal
-----------------------
The best way to contact me is via the list/forum. My time is very limited.
More information about the antlr-interest
mailing list