Ejemplo n.º 1
0
 public While(Expr cond, Stmt body)
 {
     this.cond = cond;
     this.body = body;
 }
Ejemplo n.º 2
0
 public Do(Stmt body, Expr cond)
 {
     this.body = body;
     this.cond = cond;
 }
Ejemplo n.º 3
0
 public object Execute(Stmt stmt)
 {
     return(stmt.Accept(this));
 }
Ejemplo n.º 4
0
 public If(Expr cond, Stmt thenBranch, Stmt elseBranch)
 {
     this.cond       = cond;
     this.thenBranch = thenBranch;
     this.elseBranch = elseBranch;
 }
Ejemplo n.º 5
0
 public object Resolve(Stmt stmt)
 {
     return(stmt.Accept(this));
 }