[antlr-interest] enums in v4 ANTLR Java code generation considered useless

Terence Parr parrt at cs.usfca.edu
Wed May 19 11:42:06 PDT 2010


On May 19, 2010, at 11:39 AM, Scott Stanchfield wrote:

> You can still define the match in the superclass -- just use an
> interface like Edgar mentioned and I demonstrated in the
> "clarification" note I sent.

oh right.

> I think the big value here would be that it forces every place that
> uses the token types to use the enum names (as there are no integer
> values). I think that would help debugging enormously (rather than
> seeing '4' as the value in the variables window, you'd see 'IDENT').

what about ';' token?  What's it's label?
T


More information about the antlr-interest mailing list