[antlr-interest] NoViableAltException but do not know why
OJAY78 at gmx.de
OJAY78 at gmx.de
Wed Oct 31 07:08:56 PDT 2007
Hi,
I have the following rule in my grammar.
justifyStrFunction returns[String value]
: 'justify' '(' parameter '|' ('left' | 'center' | 'right')('|' ('0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9')* )? ')'
;
Here I have a problem and do not know how to solve this.
If I try the command: justify("test"|left|4); in the ANTLRWorks Interpreter it works and I see the parser tree for that command. But if I try more than one digit like this command justify("test"|left|44); it resolves in a NoViableAltException.
Can anyone explain me why this happens??
Thanks
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the antlr-interest
mailing list