Why do I get a "NoViableAltException" when parsing "3", but when parsing "asd" 
I get "asd" (in the ANTLRWorks Interpreter):

top     :        expr;

expr    :       multExpr (('+'|'-') multExpr)*;
multExpr:       atom ('*' atom)*;
atom    :       NUM | ID | '(' expr ')';

LETTER  :       'a'..'z' | 'A'..'Z';
DIGIT   :       '0'..'9';
ID      :       LETTER (LETTER | DIGIT)*;
NUM     :       DIGIT+ ('.' DIGIT+)?;

TIA,
-- 
Rick


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to