[antlr-interest] tokens in parser grammar

Юрушкин Михаил yurushkin at rambler.ru
Wed Aug 12 07:18:39 PDT 2009


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

-- 
Best regards,
Michael


More information about the antlr-interest mailing list