[antlr-interest] literal has no associated lexer rule...
Yurushkin Michael
wotker at rambler.ru
Tue May 12 14:42:29 PDT 2009
Good day!
I use Antlr 3.
There are 2 grammar files (lexer and parser). Lexer contains tokens
definitions and parser imports tokens tabel.
Is it possible to avoid definition of all literals (such as '+', '-'
etc)...
I want to write such rules in parser:
"expr : (expr '+' factor) | (expr '-' factor) | factor;"
but the "literal has no associated lexer rule: '+'" error appears.
Best regards,
Michael
More information about the antlr-interest
mailing list