コード例 #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;
 }