/** * <summary> Basic constructor for a ParseTree. Initializes the root node with the input.</summary> * <param name="root">Root node of the tree</param> */ public ParseTree(ParseNode root) { this.root = root; }
/** * <summary> Empty constructor for ParseTree. Initializes the root node to null.</summary> */ public ParseTree() { root = null; }