示例#1
0
        public override string VisitBooleanOp([NotNull] WordLangParser.BooleanOpContext context)
        {
            var op = Visit(context.booleanOpMain());

            op += (context.NEGATION() == null ? "" : "!");

            return(Quotize(op));
        }
示例#2
0
        public override string VisitBooleanOp([NotNull] WordLangParser.BooleanOpContext context)
        {
            var neg = context.NEGATION() != null;
            var op  = "";

            if (context.booleanOpMain() != null)
            {
                op += Visit(context.booleanOpMain());
            }

            var result = (neg ? "!" : "") + op;

            //var other = context.booleanOp();
            //if (other != null)
            //{
            //    result += Visit(other);
            //}

            return(result);
        }