Beispiel #1
0
 private void Execute(Stmt stmt)
 {
     stmt.Accept(this);
 }
Beispiel #2
0
 public While(Expr condition, Stmt body)
 {
     this.condition = condition;
     this.body      = body;
 }
Beispiel #3
0
 public If(Expr condition, Stmt thenBranch, Stmt elseBranch)
 {
     this.condition  = condition;
     this.thenBranch = thenBranch;
     this.elseBranch = elseBranch;
 }
Beispiel #4
0
 private void Resolve(Stmt stmt)
 {
     stmt.Accept(this);
 }