public IfNode(ExprNode expr, StatementNode stat_first, StatementNode stat_second) { Expr = expr; Stat_first = stat_first; Stat_second = stat_second; }
public AssignNode(IdNode id, ExprNode expr, AssignType assop = AssignType.Assign) { Id = id; Expr = expr; AssOp = assop; }
public WhileNode(ExprNode expr, StatementNode stat) { Expr = expr; Stat = stat; }
public RepeatNode(BlockNode stat_list, ExprNode expr) { StatList = stat_list; Expr = expr; }
public IfNode(ExprNode expr, StatementNode then_state, StatementNode else_state = null) { Expr = expr; ThenState = then_state; ElseState = else_state; }
public RepeatNode(BlockNode stat, ExprNode exp) { StList = stat; Expr = exp; }
public IfNode(ExprNode ex, StatementNode st1, StatementNode st2 = null) { this.St1 = st1; this.St2 = st2; this.Expr = ex; }
public void Add(ExprNode node) { _operands.Add(node); }
public WhileNode(ExprNode cond, BlockNode child) { Child = child; Cond = cond; }
public BinaryNode(ExprNode expr1, ExprNode expr2, char oper) { Expr1 = expr1; Expr2 = expr2; Oper = oper; }
public BinOpNode(ExprNode left, ExprNode right, OpType op) { Left = left; Right = right; Op = op; }
public void Add(ExprNode expr) { List_ident.AddLast(expr); }
public List_identNode(ExprNode expr) { Add(expr); }
public IfNode(ExprNode expr, StatementNode stat) { Expr = expr; Stat_first = stat; }
public IfNode(ExprNode expr, StatementNode stateTrue, StatementNode stateFalse) { Expr = expr; StateTrue = stateTrue; StateFalse = stateFalse; }
public BinOp(ExprNode a, ExprNode b, Operator op) { Op = op; Lhs = a; Rhs = b; }
public IfNode(ExprNode expr, StatementNode state) { Expr = expr; StateTrue = state; }
public IfNode(ExprNode cond, BlockNode child) { TrueChild = child; FalseChild = null; Cond = cond; }
public WriteNode(ExprNode Expr) { this.Expr = Expr; }
public IfNode(ExprNode cond, BlockNode onTrue, BlockNode onFalse) { TrueChild = onTrue; FalseChild = onFalse; Cond = cond; }
public BinOpNode(ExprNode Left, ExprNode Right, char op) { this.Left = Left; this.Right = Right; this.Op = op; }
public AssignNode(IdentNode id, ExprNode expr) { Id = id; Expr = expr; }
public WriteNode(ExprNode expr) { Expr = expr; }
public WhileNode(AssignNode assign, ExprNode expr, StatementNode stat) { Assign = assign; Expr = expr; Stat = stat; }
public BinaryNode(ExprNode left, ExprNode right, char oper) { Left = left; Right = right; Oper = oper; }
public IfNode(ExprNode expr, StatementNode ifTrue, StatementNode ifFalse = null) { this.expr = expr; this.ifTrue = ifTrue; this.ifFalse = ifFalse; }
public IfNode(ExprNode Expr, StatementNode If, StatementNode Else = null) { this.Cond = Expr; this.If = If; this.Else = Else; }
public RepeatNode(ExprNode expr, BlockNode block) { Expr = expr; Block = block; }
public PrintlnNode(ExprNode Expr) { this.Expr = Expr; }
public ForNode(StatementNode a, ExprNode expr, StatementNode stat) { Assign = a; Expr = expr; Stlist = stat; }