[antlr-interest] Python warning "unsupported option: seperator"
Benjamin Niemann
pink at odahoda.de
Thu Nov 8 22:41:37 PST 2007
Alan Rooks wrote:
> Bradford Smith wrote:
>> Can anyone tell me why I keep getting this error when using the Python
>> language target?
>>
>> warning(11): internal warning: ignoring unsupported option: seperator
>>
>> Everything seems to be working otherwise. I just get this warning once or
>> twice for each time I run antlr. For example, I get it twice for the basic
>> Expr.g example from the book when I set the language=Python option for it.
>
> It's a minor bug in the Python code-gen templates. The StringTemplate
> option named "separator" is misspelled. You can fix the file
> src/org/antlr/codegen/templates/Python/Python.stg (the spelling error occurs
> twice, if I remember), and use Java's jar tool to update the
> lib/antlr-3.0.1.jar file that ANTLR uses when it runs.
You could also (easier than building your own antlr.jar) grab the
stringtemplate 3.0 jar from the previous release and use that in your
CLASSPATH. antlr 3.0.1 contains 3.1b1 of stringtemplate which just
slipped in mistakenly but didn't cause any trouble besides this little
warning.
HTH
Ben
More information about the antlr-interest
mailing list