[antlr-interest] ANTLR 3.0b5 problem with predicates

Shmuel Siegel ssiegel at finjan.com
Fri Nov 24 03:37:48 PST 2006


"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.


More information about the antlr-interest mailing list