public dynamic eval(Dictionary<string, Expr> env) { Expr ret = new BoolExpr(true); BoolExpr boolcast; for (int i = 0; i < args.Count; i++) { ret = args[i].eval(env); if (ret.GetType() == typeof(BoolExpr)) { boolcast = (BoolExpr)ret; if (!boolcast.getValue()) return new BoolExpr(false); } } return ret; }
public dynamic eval(Dictionary <string, Expr> env) { Expr ret = new BoolExpr(true); BoolExpr boolcast; for (int i = 0; i < args.Count; i++) { ret = args[i].eval(env); if (ret.GetType() == typeof(BoolExpr)) { boolcast = (BoolExpr)ret; if (!boolcast.getValue()) { return(new BoolExpr(false)); } } } return(ret); }