[antlr-interest] new build

Terence Parr parrt at cs.usfca.edu
Tue Feb 12 13:21:52 PST 2008


Hi. Fixed some good stuff:

http://www.antlr.org/download/build/antlr-2008-02-12.13.tar.gz

* Fixed ANTLR-219.
   It looks like the AST construction code for sets was totally messed  
up.
   This was for not only the new tree parser AST construction, but also
   the regular tree construction for parsers. I had to introduce  
templates
   in the ASTTreeParser.stg file to deal with this. added unit tests:
   TestTreeGrammarRewriteAST.testSetMatchNoRewrite(),
   testSetMatchNoRewriteLevel2(), testSetMatchNoRewriteLevel2Root().
   Had to add template matchRuleBlockSet()
   to differentiate between a regular set in one that is an entire rule.
   If it is an entire rule, it has to set the return value, retval.tree.

* Fixed ANTLR-220.
   Made TreeAdaptor dupNode and dupTree events emit debugging events
   so AW could see tree node duplications.

February 4, 2008

* BACKWARD INCOMPATIBILITY
   Added getSourceName to IntStream and TokenSource interfaces and  
also the
   BaseRecognizer.  Have to know where char come from for error  
messages.
   Widespread change, but a trivial one.

etc...

see CHANGES.txt

Ter


More information about the antlr-interest mailing list