private object evaluate(Expr expr)
 {
     return(expr.accept(this));
 }
 public String print(Expr expr)
 {
     return(expr.accept(this));
 }
示例#3
0
 private void resolve(Expr expr)
 {
     expr.accept(this);
 }