Beispiel #1
0
 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;
 }
Beispiel #3
0
 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;
 }
Beispiel #6
0
 public RepeatNode(BlockNode stat, ExprNode exp)
 {
     StList = stat;
     Expr   = exp;
 }
Beispiel #7
0
 public IfNode(ExprNode ex, StatementNode st1, StatementNode st2 = null)
 {
     this.St1  = st1;
     this.St2  = st2;
     this.Expr = ex;
 }
Beispiel #8
0
 public void Add(ExprNode node)
 {
     _operands.Add(node);
 }
Beispiel #9
0
 public WhileNode(ExprNode cond, BlockNode child)
 {
     Child = child;
     Cond  = cond;
 }
Beispiel #10
0
 public BinaryNode(ExprNode expr1, ExprNode expr2, char oper)
 {
     Expr1 = expr1;
     Expr2 = expr2;
     Oper  = oper;
 }
Beispiel #11
0
 public BinOpNode(ExprNode left, ExprNode right, OpType op)
 {
     Left  = left;
     Right = right;
     Op    = op;
 }
Beispiel #12
0
 public void Add(ExprNode expr)
 {
     List_ident.AddLast(expr);
 }
Beispiel #13
0
 public List_identNode(ExprNode expr)
 {
     Add(expr);
 }
Beispiel #14
0
 public IfNode(ExprNode expr, StatementNode stat)
 {
     Expr       = expr;
     Stat_first = stat;
 }
Beispiel #15
0
 public IfNode(ExprNode expr, StatementNode stateTrue, StatementNode stateFalse)
 {
     Expr       = expr;
     StateTrue  = stateTrue;
     StateFalse = stateFalse;
 }
Beispiel #16
0
 public BinOp(ExprNode a, ExprNode b, Operator op)
 {
     Op  = op;
     Lhs = a;
     Rhs = b;
 }
Beispiel #17
0
 public IfNode(ExprNode expr, StatementNode state)
 {
     Expr      = expr;
     StateTrue = state;
 }
Beispiel #18
0
 public IfNode(ExprNode cond, BlockNode child)
 {
     TrueChild  = child;
     FalseChild = null;
     Cond       = cond;
 }
Beispiel #19
0
 public WriteNode(ExprNode Expr)
 {
     this.Expr = Expr;
 }
Beispiel #20
0
 public IfNode(ExprNode cond, BlockNode onTrue, BlockNode onFalse)
 {
     TrueChild  = onTrue;
     FalseChild = onFalse;
     Cond       = cond;
 }
Beispiel #21
0
 public BinOpNode(ExprNode Left, ExprNode Right, char op)
 {
     this.Left  = Left;
     this.Right = Right;
     this.Op    = op;
 }
Beispiel #22
0
 public AssignNode(IdentNode id, ExprNode expr)
 {
     Id   = id;
     Expr = expr;
 }
 public WriteNode(ExprNode expr)
 {
     Expr = expr;
 }
Beispiel #24
0
 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;
 }
Beispiel #26
0
 public IfNode(ExprNode expr, StatementNode ifTrue, StatementNode ifFalse = null)
 {
     this.expr    = expr;
     this.ifTrue  = ifTrue;
     this.ifFalse = ifFalse;
 }
Beispiel #27
0
 public IfNode(ExprNode Expr, StatementNode If, StatementNode Else = null)
 {
     this.Cond = Expr;
     this.If   = If;
     this.Else = Else;
 }
Beispiel #28
0
 public RepeatNode(ExprNode expr, BlockNode block)
 {
     Expr  = expr;
     Block = block;
 }
Beispiel #29
0
 public PrintlnNode(ExprNode Expr)
 {
     this.Expr = Expr;
 }
Beispiel #30
0
 public ForNode(StatementNode a, ExprNode expr, StatementNode stat)
 {
     Assign = a;
     Expr   = expr;
     Stlist = stat;
 }