Search in sources :

Example 1 with And

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

the class CFMLExpressionInterpreter method andOp.

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

Aggregations

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