public object VisitLogicalExpr(Logical expr) { object left = Evaluate(expr.Left); if (expr.Operator.Type == TokenType.OR) { if (IsTruthy(left)) { return(left); } } else { if (!IsTruthy(left)) { return(left); } } return(Evaluate(expr.Right)); }
public string VisitLogicalExpr(Logical expr) { throw new System.NotImplementedException(); }