public void ExitPredicate(QueryParser.PredicateContext context) { CompileLeftAssociativeOperator(context.OR(), _expressions, (op, left, right) => new OrExpression(op.Symbol.Line, op.Symbol.Column, left, right)); }
/// <summary> /// Exit a parse tree produced by <see cref="QueryParser.predicate"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitPredicate([NotNull] QueryParser.PredicateContext context) { }
// Methods in this group are either no-ops or they pop 1 or more expressions from the // _expression stack and push 1 expression as a result of some function on the removed // subexpressions. The ExitFactor method is a soruce of expressions. It pushes 1 // expression to the _expressions stack. No expressions will be removed by this method. public void EnterPredicate(QueryParser.PredicateContext context) { }