Пример #1
0
 public override Argument VisitParenthesisExpression(CalcParser.ParenthesisExpressionContext context)
 {
     return(Visit(context.expression()));
 }
Пример #2
0
        public override Query VisitParenthesisExpression(CalcParser.ParenthesisExpressionContext context)
        {
            Query q = Visit(context.expression());

            return(new Query($"({q})", q.ExpectedResult));
        }