예제 #1
0
        protected override IPyValue VisitParenthesizedExpression(ParenthesizedExpression src)
        {
            var e = TransValue(src.Expression);
            var a = new PyParenthesizedExpression(e);

            return(SimplifyPyExpression(a));
        }
예제 #2
0
 protected virtual T VisitPyParenthesizedExpression(PyParenthesizedExpression node)
 {
     if (ThrowNotImplementedException)
     {
         throw new NotImplementedException(string.Format("Method {0} is not supported in class {1}", "VisitPyParenthesizedExpression", this.GetType().FullName));
     }
     return(default(T));
 }
예제 #3
0
 protected IPyValue StripBracketsAndSimplify(IPyValue value, IPyExpressionSimplifier s)
 {
     value = PyParenthesizedExpression.Strip(value);
     value = s.Simplify(value);
     return(value);
 }