Bug in rewriteCode as you say.  Made the !rewriteMode clause in an  
else of !TREE_PARSER:

Seems correct

<if(!TREE_PARSER)>
<prevRuleRootRef()>.tree = root_0;
<else>
<if(!rewriteMode)>
<prevRuleRootRef()>.tree = root_0;
<endif>
<endif>

edit //depot/code/antlr/main/CHANGES.txt#84
edit //depot/code/antlr/main/src/org/antlr/codegen/templates/Java/ 
AST.stg#50
edit //depot/code/antlr/main/src/org/antlr/test/ 
TestJavaCodeGeneration.java#8
Change 5159 submitted.

The TestJavaCO...one is unrelated...sorry.
Ter
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to