Search in sources :

Example 1 with Or

use of lucee.runtime.interpreter.ref.op.Or in project Lucee by lucee.

the class CFMLExpressionInterpreter method orOp.

/**
 * Transfomiert eine  Or (or) Operation. Im Gegensatz zu CFMX ,
 * werden "||" Zeichen auch als Or Operatoren anerkannt.
 * <br />
 * EBNF:<br />
 * <code>andOp {("or" | "||") spaces andOp}; (* "||" Existiert in CFMX nicht *)</code>
 * @return CFXD Element
 * @throws PageException
 */
private Ref orOp() throws PageException {
    Ref ref = andOp();
    while (cfml.isValidIndex() && (cfml.forwardIfCurrent("||") || cfml.forwardIfCurrent("or"))) {
        cfml.removeSpace();
        ref = new Or(ref, andOp(), limited);
    }
    return ref;
}
Also used : Ref(lucee.runtime.interpreter.ref.Ref) Or(lucee.runtime.interpreter.ref.op.Or)

Aggregations

Ref (lucee.runtime.interpreter.ref.Ref)1 Or (lucee.runtime.interpreter.ref.op.Or)1