[antlr-interest] anonymous templete containing "<"
Felix Dorner
felix_do at web.de
Mon Jun 16 02:11:45 PDT 2008
Hi, my emitter at first generates literal templates for binary
operations, one of which is the "<" comparison.
I get this exception:
line 1:1: unexpected char: '<'
at
org.antlr.stringtemplate.language.AngleBracketTemplateLexer.nextToken(AngleBracketTemplateLexer.java:149)
The templates are instanciated like this:
binaryOp
@init {
$st = %{$start.getText()};
}
:
| PLUS
| MINUS
| MULT
| DIV
| MOD
| DIVMOD
| ADD
| REM
| LT
| GT
| LEQ
| GEQ
| EQ
| NEQ
| AND
| OR
;
More information about the antlr-interest
mailing list