[antlr-interest] Initializing synthetic tokens?

Gerald Rosenberg gerald at certiv.net
Thu Nov 15 22:55:13 PST 2012


Strange. I get ". . . mismatched input ':' expecting RBRACE" .  The only 
syntax that seems to be recognized is

tokens { A, B }


On 11/15/2012 10:41 AM, Terence Parr wrote:
> 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