Esempio n. 1
0
 public PrintStmt(Expression expr, Token token)
     : base(token)
 {
     this.expr = expr;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 public DeclarationStmt(string identifier, ValueType type, Token token, Expression initialValue)
     : this(identifier, type, token)
 {
     this.initialValue = initialValue;
 }
Esempio n. 4
0
 public AssignStmt(string identifier, Expression expr, Token token)
     : base(token)
 {
     this.identifier = identifier;
     this.expr = expr;
 }
Esempio n. 5
0
 public UnaryOp(char op, Expression expr, Token token)
     : base(token)
 {
     this.op = op; this.expr = expr;
 }
Esempio n. 6
0
 public BinaryOp(Expression lhs, char op, Expression rhs, Token token)
     : base(token)
 {
     this.op = op;
     this.lhs = lhs;
     this.rhs = rhs;
 }