[antlr-interest] NoViableAltException in argumentList
Lucas Ontivero
lucasontivero at hotmail.com
Fri Nov 23 17:03:54 PST 2007
Hi all,Somebody could help me with this? I have the following rule: argumentList : argument (',' argument)* -> ^(ARGUMENT_LIST argument+) ; argument : typeName IDENTIFIER -> ^(ARGUMENT typeName IDENTIFIER) ; typeName : 'char' | 'bool' | 'int' ; And when I use the interpreter of AntlrWork with:int a, bool b AntlrWork shows me:
argumentList
argument
typeName
int
a
,
argument
typeName
bool
b
NoViableAltException Why is that exception? Thanx all.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071124/75c6824e/attachment.html
More information about the antlr-interest
mailing list