Юрушкин Михаил wrote:
> Good day,
> Is it possible to write the following:
> "int_literal: CHAR_STRING "_" kind ..."
>   

Literals are single quoted.
> or I must specify the token UNDERSCORE in lexer grammar and write
>
> "int_literal: CHAR_STRING UNDERSCORE kind ...".
>   
It is much better to do this as then the lexer rules will be explicit as 
you won't get confused over ambiguities.
> C target. Last version of Antlr
>
>   
The target does not make a difference in this case, but thank you for 
mentioning this as it sometimes does :-)

Jim


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to