public PositiveExpressionInfo Parse(SelectAtomContext ctx)
        {
            var rslt = new PositiveExpressionInfo();
            rslt.IsPositive = true;
            if (!string.IsNullOrWhiteSpace(Operator))
            {
                if (Operator == "-")
                    rslt.IsPositive = false;
            }

            if (Unary_operator != null)
                rslt.UnaryOperatorInfo = Unary_operator.Parse(ctx);

            return rslt;
        }
Example #2
0
        public PositiveExpressionInfo Parse(SelectAtomContext ctx)
        {
            var rslt = new PositiveExpressionInfo();

            rslt.IsPositive = true;
            if (!string.IsNullOrWhiteSpace(Operator))
            {
                if (Operator == "-")
                {
                    rslt.IsPositive = false;
                }
            }

            if (Unary_operator != null)
            {
                rslt.UnaryOperatorInfo = Unary_operator.Parse(ctx);
            }

            return(rslt);
        }