[antlr-interest] litterals and semantic or syntactic predicates?
Magne Andreassen
magne.andreassen at bluezone.no
Thu Jun 2 09:48:29 PDT 2005
hi,
having two parser rules like:
ruleone : "say" ( "hello-world" | subrule ) ;
ruletwo : "hello" ( subrule )+ ;
subrule : INT ;
trying to parse:
say hello-world
hello 42
i get an error message saying:
line 1:1: unexpected token: hello
the first "hello-world" is counted as two tokens?
any suggestions?
Magne
More information about the antlr-interest
mailing list