PHP Class Neos\Eel\CompilingEelParser

The matcher functions will generate PHP code according to the expressions. Method calls and object / array access are wrapped using the Context object.
Inheritance: extends EelParser
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$tmpId integer

Public Methods

Method Description
ArrayLiteral_Expression ( &$result, $sub )
ArrayLiteral__finalise ( &$result )
BooleanLiteral__finalise ( &$result )
Comparison_comp ( &$result, $sub )
Comparison_lft ( &$result, $sub )
Comparison_rgt ( &$result, $sub )
ConditionalExpression_cond ( &$result, $sub )
ConditionalExpression_else ( &$result, $sub )
ConditionalExpression_then ( &$result, $sub )
Conjunction_lft ( &$result, $sub )
Conjunction_rgt ( &$result, $sub )
Disjunction_lft ( &$result, $sub )
Disjunction_rgt ( &$result, $sub )
Expression_exp ( &$result, $sub )
MethodCall_Expression ( &$result, $sub )
MethodCall_Identifier ( &$result, $sub )
NotExpression_exp ( &$result, $sub )
NumberLiteral__finalise ( &$self )
ObjectLiteralProperty_Identifier ( &$result, $sub )
ObjectLiteralProperty_StringLiteral ( &$result, $sub )
ObjectLiteral_ObjectLiteralProperty ( &$result, $sub )
ObjectLiteral__finalise ( &$result )
ObjectPath_Identifier ( &$result, $sub )
ObjectPath_MethodCall ( &$result, $sub )
ObjectPath_OffsetAccess ( &$result, $sub )
OffsetAccess_Expression ( &$result, $sub )
ProdCalculation_lft ( &$result, $sub )
ProdCalculation_op ( &$result, $sub )
ProdCalculation_rgt ( &$result, $sub )
SimpleExpression_term ( &$result, $sub )
StringLiteral_DoubleQuotedStringLiteral ( array &$result, array $sub ) Evaluate a double quoted string literal
StringLiteral_SingleQuotedStringLiteral ( &$result, $sub )
SumCalculation_lft ( &$result, $sub )
SumCalculation_op ( &$result, $sub )
SumCalculation_rgt ( &$result, $sub )
Term_term ( &$result, $sub )
WrappedExpression_Expression ( &$result, $sub )

Protected Methods

Method Description
unwrapExpression ( string $expression ) : string Return an expression that unwraps the given expression if it is a Context object.

Method Details

ArrayLiteral_Expression() public method

public ArrayLiteral_Expression ( &$result, $sub )

ArrayLiteral__finalise() public method

public ArrayLiteral__finalise ( &$result )

BooleanLiteral__finalise() public method

public BooleanLiteral__finalise ( &$result )

Comparison_comp() public method

public Comparison_comp ( &$result, $sub )

Comparison_lft() public method

public Comparison_lft ( &$result, $sub )

Comparison_rgt() public method

public Comparison_rgt ( &$result, $sub )

ConditionalExpression_cond() public method

public ConditionalExpression_cond ( &$result, $sub )

ConditionalExpression_else() public method

public ConditionalExpression_else ( &$result, $sub )

ConditionalExpression_then() public method

public ConditionalExpression_then ( &$result, $sub )

Conjunction_lft() public method

public Conjunction_lft ( &$result, $sub )

Conjunction_rgt() public method

public Conjunction_rgt ( &$result, $sub )

Disjunction_lft() public method

public Disjunction_lft ( &$result, $sub )

Disjunction_rgt() public method

public Disjunction_rgt ( &$result, $sub )

Expression_exp() public method

public Expression_exp ( &$result, $sub )

MethodCall_Expression() public method

public MethodCall_Expression ( &$result, $sub )

MethodCall_Identifier() public method

public MethodCall_Identifier ( &$result, $sub )

NotExpression_exp() public method

public NotExpression_exp ( &$result, $sub )

NumberLiteral__finalise() public method

public NumberLiteral__finalise ( &$self )

ObjectLiteralProperty_Identifier() public method

public ObjectLiteralProperty_Identifier ( &$result, $sub )

ObjectLiteralProperty_StringLiteral() public method

public ObjectLiteralProperty_StringLiteral ( &$result, $sub )

ObjectLiteral_ObjectLiteralProperty() public method

public ObjectLiteral_ObjectLiteralProperty ( &$result, $sub )

ObjectLiteral__finalise() public method

public ObjectLiteral__finalise ( &$result )

ObjectPath_Identifier() public method

public ObjectPath_Identifier ( &$result, $sub )

ObjectPath_MethodCall() public method

public ObjectPath_MethodCall ( &$result, $sub )

ObjectPath_OffsetAccess() public method

public ObjectPath_OffsetAccess ( &$result, $sub )

OffsetAccess_Expression() public method

public OffsetAccess_Expression ( &$result, $sub )

ProdCalculation_lft() public method

public ProdCalculation_lft ( &$result, $sub )

ProdCalculation_op() public method

public ProdCalculation_op ( &$result, $sub )

ProdCalculation_rgt() public method

public ProdCalculation_rgt ( &$result, $sub )

SimpleExpression_term() public method

public SimpleExpression_term ( &$result, $sub )

StringLiteral_DoubleQuotedStringLiteral() public method

We need to replace the double quoted string with a
public StringLiteral_DoubleQuotedStringLiteral ( array &$result, array $sub )
$result array
$sub array

StringLiteral_SingleQuotedStringLiteral() public method

public StringLiteral_SingleQuotedStringLiteral ( &$result, $sub )

SumCalculation_lft() public method

public SumCalculation_lft ( &$result, $sub )

SumCalculation_op() public method

public SumCalculation_op ( &$result, $sub )

SumCalculation_rgt() public method

public SumCalculation_rgt ( &$result, $sub )

Term_term() public method

public Term_term ( &$result, $sub )

WrappedExpression_Expression() public method

public WrappedExpression_Expression ( &$result, $sub )

unwrapExpression() protected method

Return an expression that unwraps the given expression if it is a Context object.
protected unwrapExpression ( string $expression ) : string
$expression string
return string

Property Details

$tmpId protected property

protected int $tmpId
return integer