Hi Ter,

the new error message "rule <arg> alt <arg2> uses rewrite syntax and
also an AST operator", introduced in CL4809, seems to be a bit
overeager - as it also triggers in tree parsers, where that syntax is
legal.
Take the grammars from TestTreeGrammarRewriteAST.testSimpleTree as an
example (or search the output of your testsuite for the message, there
are plenty).

Also the block in CL4812 after "<! if parser or rewrite!=true, we need
to set result !>" is not really equivalent to "parser or
rewrite!=true" - resulting in that line of code being doubled in the
output.

-Ben
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to