The ExpressionLanguage component provides an engine that can compile and evaluate expressions. An expression is a one-liner that returns a value (mostly, but not limited to, Booleans).
- You can pass a callback for the $names argument in the compile() method.
- You can add custom node compiler functions that change the way nodes are compiled using the addNodeFunction() method.
- You can customize the regular expression for variables in the lexer using the setNamePattern() method.