private void Execute(Stmt stmt) { stmt.Accept(this); }
public string Print(Stmt stmt) { return(stmt.Accept(this)); }
public If(Expr condition, Stmt thenBranch, Stmt elseBranch) { Condition = condition; ThenBranch = thenBranch; ElseBranch = elseBranch; }
public While(Expr condition, Stmt body) { Condition = condition; Body = body; }
private void Resolve(Stmt stmt) { stmt.Accept(this); }