Search in sources :

Example 1 with Exp

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

the class CFMLExpressionInterpreter method expoOp.

/**
 * Transfomiert den Exponent Operator (^,exp). Im Gegensatz zu CFMX ,
 * werden die Zeichen " exp " auch als Exponent anerkannt.
 * <br />
 * EBNF:<br />
 * <code>clip {("exp"|"^") spaces clip};</code>
 * @return CFXD Element
 * @throws PageException
 */
private Ref expoOp() throws PageException {
    Ref ref = unaryOp();
    while (cfml.isValidIndex() && (cfml.forwardIfCurrent('^') || cfml.forwardIfCurrent("exp"))) {
        cfml.removeSpace();
        ref = new Exp(ref, unaryOp(), limited);
    }
    return ref;
}
Also used : Ref(lucee.runtime.interpreter.ref.Ref) Exp(lucee.runtime.interpreter.ref.op.Exp)

Aggregations

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