예제 #1
0
 public PrintStmt(Expression expr, Token token)
     : base(token)
 {
     this.expr = expr;
 }
예제 #2
0
 public ForStmt(string identifier, Expression startVal, Expression endVal, IEnumerable<Statement> block, Token token)
     : base(token)
 {
     this.identifier = identifier;
     this.startVal = startVal;
     this.endVal = endVal;
     this.block = block;
 }
예제 #3
0
 public DeclarationStmt(string identifier, ValueType type, Token token, Expression initialValue)
     : this(identifier, type, token)
 {
     this.initialValue = initialValue;
 }
예제 #4
0
 public AssignStmt(string identifier, Expression expr, Token token)
     : base(token)
 {
     this.identifier = identifier;
     this.expr = expr;
 }
예제 #5
0
 public UnaryOp(char op, Expression expr, Token token)
     : base(token)
 {
     this.op = op; this.expr = expr;
 }
예제 #6
0
 public BinaryOp(Expression lhs, char op, Expression rhs, Token token)
     : base(token)
 {
     this.op = op;
     this.lhs = lhs;
     this.rhs = rhs;
 }