[antlr-interest] Python RuntimeError

andre rutti andre.rutti at gmail.com
Wed Jan 27 07:36:02 PST 2010


I'm using antlr\antlrworks-1.3 to generate lexer and parser for Python.

Using the examples from

When I run Test.py, I get

RuntimeError: ANTLR version mismatch: The recognizer has been generated by
Sep 23, 2009 12:02:23, but this runtime is V3.1.2. Please use the V3.2 Sep
23, 2
009 12:02:23 runtime or higher.

Is the Python runtime for V3.2 available ?

I tried with antlrworks-1.2.2, but then, I got errors for Eval.g

[15:44:31] error(10):  internal error: eval tree parse error : <AST>:0:0:
unexpected AST node:
org.antlr.stringtemplate.language.ActionEvaluator.expr(Unknown Source)
org.antlr.stringtemplate.language.ActionEvaluator.action(Unknown Source)
org.antlr.stringtemplate.language.ASTExpr.evaluateExpression(Unknown Source)
org.antlr.stringtemplate.language.ASTExpr.handleExprOptions(Unknown Source)

Thanks and regards,

More information about the antlr-interest mailing list