to support the heterogeneous tree construction. Until yesterday, it  
allowed a single identifier in angle brackets like ID<MyVarNode>, but  
I generalized it because I will very shortly need options to specify  
precedence and associativity when I do my fancy fast expression parsing.

* Fixed ANTLR-217; scope A,B,C; didn't work

* Fixed ANTLR-224; ! or ^ on item in alt with rewrite gave exception

* Added token options to terminals: ID<node=V; foo="Big bob"> etc...
   node is default so you can do ID<V> for hetero tree types. most  
common.

Note: I changed a few templates in ASTTreeParser.stg so that it  
properly deals with ID<V> on the left side of the rewrite as opposed  
to just inside rewrites. It did things like:

stream_<token>.nextNode()

  instead of:

<if(hetero)>
new <hetero>(stream_<token>.nextNode())
<else>
stream_<token>.nextNode()
<endif>

The fixed should be easy and obvious when you look at the template;  
however, if you are pressed for time you can leave it alone for this  
release.

The list of available token options is in Token.java.

This close as ANTLR-239.

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

Reply via email to