[antlr-interest] Bad Token-type to AST-Class map in 2.7.2 Java; broken release
random_uv
thomasw at sce-tech.com
Fri Dec 5 23:34:53 PST 2003
Hi, just diagnosed 2.7.2 as problematic and gone back to 2.7.0.
Problem is tokens declared with string literal:
IMPORT_ON_DEMAND <AST=persist.qtree.Node>;
THIS = "this" <AST=persist.qtree.ThisExpr>;
ASCENDING = "ascending" <AST=persist.qtree.AscendingOrderingExpr>;
Generates a broken TokenType to AST ClassMap.
tokenTypeToASTClassMap.put(new Integer(IMPORT_ON_DEMAND),
persist.qtree.Node.class);
tokenTypeToASTClassMap.put(new Integer("this"),
persist.qtree.ThisExpr.class);
tokenTypeToASTClassMap.put(new Integer("ascending"),
persist.qtree.AscendingOrderingExpr.class);
Note that tokens without string (literals?) assigned are OK as they
are mapping by integer constants; but tokens with strings are
generated broken with the strings as map IDs.
Proceeding with 2.7.0 for now. Anyone else seen this problem?
Regards,
Thomas
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list