A lexer (tokenizer) for variables used in styling templates.
More...
|
|
const | PATT_INTEGER = '/^[0-9]+/' |
| | Allow stuff such as "1234".
|
| |
|
const | PATT_REAL = '/^[0-9]*\.[0-9]+|^[0-9]+\.[0-9]*/' |
| | Allow stuff such as "1.23", "1." or ".23".
|
| |
|
const | PATT_VAR_NAME = '/^[a-zA-Z0-9_\\.]+/' |
| | Pattern for variable names.
|
| |
|
|
| tokenize () |
| | This method does the actual work.
|
| |
A lexer (tokenizer) for variables used in styling templates.
Definition at line 28 of file Lexer.php.
| Erebot\Styling\Lexer::__construct |
( |
|
$formula, |
|
|
array |
$vars |
|
) |
| |
| Erebot\Styling\Lexer::getResult |
( |
| ) |
|
Returns the result of the formula.
- Return values
-
| mixed | Result of the formula. |
Definition at line 78 of file Lexer.php.
The documentation for this class was generated from the following file: