[antlr-interest] Error in predicate logic
Gavin Lambert
antlr at mirality.co.nz
Fri Feb 16 00:57:12 PST 2007
At 06:42 16/02/2007, Gerald B. Rosenberg wrote:
>SPCHAR
>: ( AMP GRIDLET INT SEMI ) => AMP GRIDLET INT SEMI
>| ( AMP LETTERS SEMI ) => AMP LETTERS SEMI
>| ( AMP ) => AMP { $type=PCCHAR; }
>;
Ok, I could be wrong, but I don't think you need any of those
syntactic predicates, since your lookahead matches what you're
trying to parse anyway.
Oh, and what you call a GRIDLET is normally called a "hash
mark". Except for some Americans, who inexplicably call it a
"pound sign".
More information about the antlr-interest
mailing list