Class ParseTreeSpecializer

  • All Implemented Interfaces:
    ParseTreeVisitor

    public class ParseTreeSpecializer
    extends AbstractParseTreeVisitor
    This class reduces a parse tree, given a scope of bound variables. If an identifier is not found in the given scope, then the identifier is bound to any constants registered with the expression parser. If any subtrees of the parse tree become constant, they are evaluated and replaced with leaf nodes containing the evaluated result.
    Since:
    Ptolemy II 2.1
    Version:
    $Id$
    Author:
    Steve Neuendorffer
    See Also:
    ASTPtRootNode
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (neuendor)