[antlr-interest] Problem with antlrworks (1.1.7 and 1.2b) and Python target (generation/debugging)
Simos Xenitellis
simos.lists at googlemail.com
Mon May 19 03:27:05 PDT 2008
Hi,
I am having trouble in using antlrworks with the Python target.
However, from command line I can generate source code and parse the tree.
The way to bypass this problem is to comment out the language line in
the options{} section of the grammar when using AntlrWorks.
Here are the errors I am getting,
(antlrworks 1.2b with stringtemplate.jar 3.1, pyStringTemplate 3.1)
error(10): internal error: /tmp/XKBGrammar.g :
java.lang.IllegalArgumentException: Can't find template noRewrite.st
In the UI, when generating code, it shows the error
"Cannot generate the grammar because:
error(10): internal error: group Python does not satisfy interface
ANTLRCore: mismatched arguments on these templates [tokenRef(token,
label, elementIndex, hetero), tokenRefAndListLabel(token, label,
elementIndex, hetero)]"
(antlrworks 1.17 with stringtemplate.jar 3.1, pyStringTemplate 3.1)
error(10): internal error: no such group file Dbg.stg
error(10): internal error: problem parsing group AST:
java.lang.IllegalArgumentException: Can't find template outputFile.st :
java.lang.IllegalArgumentException: Can't find template outputFile.st
Simos
More information about the antlr-interest
mailing list