Юрушкин Михаил wrote:
> Good day,
> Is it possible to write the following:
> "int_literal: CHAR_STRING "_" kind ..."
> 
> or I must specify the token UNDERSCORE in lexer grammar and write
> 
> "int_literal: CHAR_STRING UNDERSCORE kind ...".
> 
> C target. Last version of Antlr

If it's a combined grammar, that'll work, but it's better in many ways 
to put it in the lexer as a token.

If the lexer and parser are separate, I believe it won't work.


-- 
Sam Barnett-Cormack

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