[antlr-interest] Initializing synthetic tokens?

Terence Parr parrt at cs.usfca.edu
Thu Nov 15 10:41:22 PST 2012


tokens is now an enum.  

COMMA : ',' ;

is preferred
T
On Nov 15, 2012, at 9:52 AM, Gerald Rosenberg wrote:

> In v3, synthetic tokens could be initialized:
> tokens {
>     COMMA = ',' ;
> }
> 
> v4 complains about the assignment.  Is there an alternative/preferred 
> way to initialize these tokens?  Did not find anything in TDAR4.
> 
> Thanks.
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list