Hi there,
I've been trying the Expression evaluator tutorial at http://www.antlr.org/works/help/tutorial/calculator.html [1] and am getting a MismatchedTokenException(10!=4) when parsing strings containing subtraction like "1-2n" in the interpreter. The grammar works fine when I generate and debug but in the interpreter it fails. If I swap the '+' and '-' expressions the same problem occurs with the '+' instead of the '-' so its positional. Any ideas? Thanks, Tristan Links: ------ [1] http://www.antlr.org/works/help/tutorial/calculator.html 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.
