public ForNode(IdNode id, ExprNode from, ExprNode to, StatementNode stat) { Id = id; ExprChildren.Add(from); ExprChildren.Add(to); StatChildren.Add(stat); }
public LabelStatementNode(int num, StatementNode stat) { Label = new IntNumNode(num); StatChildren.Add(stat); }
public IfElseNode(ExprNode expr, StatementNode trueSt, StatementNode falseSt = null) { ExprChildren.Add(expr); StatChildren.Add(trueSt); StatChildren.Add(falseSt); }
public void Add(StatementNode stat) { StatChildren.Add(stat); }
public WhileNode(ExprNode expr, StatementNode stat) { ExprChildren.Add(expr); StatChildren.Add(stat); }