Пример #1
0
        public override double VisitParenthesizedExpr(ExcelApplicationParser.ParenthesizedExprContext context)
        {
            string expression = context.GetText();

            if (expression[0] == '-')
            {
                return(-Visit(context.expression()));
            }
            return(Visit(context.expression()));
        }
Пример #2
0
 public override double VisitParenthesizedExpr(ExcelApplicationParser.ParenthesizedExprContext context)
 {
     return(Visit(context.expression()));
 }