public override Maybe<Result> VisitNeg_expr(QueryParser.Neg_exprContext context) { if (context.SUB() != null) return VisitNeg_expr(context.neg_expr()).Bind(r => r.Negate().Just()); return new TermExprVisitor(_zmi, _env).Visit(context.term_expr()); }
/// <summary> /// Visit a parse tree produced by <see cref="QueryParser.neg_expr"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitNeg_expr([NotNull] QueryParser.Neg_exprContext context) { return(VisitChildren(context)); }