Can a tree parser inherit from another tree parser?
Location: http://www.jguru.com/faq/view.jsp?EID=68257 Created: Jun 7, 2000 Modified: 2000-06-07 17:48:11.575 Author: Terence Parr (http://www.jguru.com/guru/viewbio.jsp?EID=1) Question originally posed by Frederic Fondement PREMIUM (http://www.jguru.com/guru/viewbio.jsp?EID=62613 Sure. In fact, this is a great way to do multiple-phase tree transformations. Have the super grammar contain all common rules and the complete set of token types used by your system so that the token types can be shared amongst all phases. (usually, the grammar of your phases changes but some of the token types need to overlap so phase n can create the input for phase n+1).