[antlr-interest] bug in grammar inheritance
Silvain Piree
s.piree at enneya.com
Thu Nov 7 04:33:01 PST 2002
Hi,
ANTLR contains a bug when using grammar inheritance.
When no importVocab is specified then ANTLR copies
the XxxTokenTypes.txt file from the supergrammar
to the current directory instead of the target directory.
This can be fixed by replacing following code in
"antlr/preprocessor/Grammar.java":
OLD CODE in method expandInPlace():
String newImportVocabFileName =
antlrTool.fileMinusPath(superExportVocabFileName);
NEW CODE in method expandInPlace()::
String newImportVocabFileName =
antlrTool.getOutputDirectory() +
System.getProperty("file.separator") +
antlrTool.fileMinusPath(superExportVocabFileName);
Silvain
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list