Exemplo n.º 1
0
 private void Execute(Stmt stmt)
 {
     stmt.Accept(this);
 }
Exemplo n.º 2
0
 public While(Expr condition, Stmt body)
 {
     Condition = condition;
     Body      = body;
 }
Exemplo n.º 3
0
 private void Resolve(Stmt stmt)
 {
     stmt.Accept(this);
 }
Exemplo n.º 4
0
 public If(Expr condition, Stmt thenBranch, Stmt elseBranch)
 {
     Condition  = condition;
     ThenBranch = thenBranch;
     ElseBranch = elseBranch;
 }