public TreeElement(TreeCode code) { this.TreeCode = code; }
public void UpdateFromReduction(ExpressionPath expression, string varName) { TreeCode.UpdateFromReduction(expression, varName); }
public static int maxTreeDamage(TreeCode tc) { switch(tc) { case TreeCode.PINE_TREE: return 3; case TreeCode.BIRCH_TREE: return 2; case TreeCode.OAK_TREE: return 5; default: return 3; } }
/* * public void AddToDeleteMe(ExpressionsReductor reductor) * { * TreeCode.AddToDeleteMe(reductor); * } */ public IEnumerable <ExpressionPath> GetUsedExpressions() { return(TreeCode.GetUsedExpressions()); }