Method |
Description |
|
__construct ( MacroTokens $tokens, $modifiers = NULL, array $context = NULL ) |
|
|
escapePass ( MacroTokens $tokens ) : MacroTokens |
Escapes expression in tokens. |
|
expandCastPass ( MacroTokens $tokens ) : MacroTokens |
Pseudocast (expand). |
|
formatArgs ( MacroTokens $tokens = NULL ) : string |
Formats macro arguments to PHP code. (It advances tokenizer to the end as a side effect.) |
|
formatArray ( MacroTokens $tokens = NULL ) : string |
Formats macro arguments to PHP array. (It advances tokenizer to the end as a side effect.) |
|
formatModifiers ( $var, $isContent = FALSE ) : string |
Formats modifiers calling. |
|
formatWord ( $s ) : string |
Formats parameter to PHP string. |
|
inOperatorPass ( MacroTokens $tokens ) : MacroTokens |
Syntax $entry in [item1, item2]. |
|
inlineModifierPass ( MacroTokens $tokens ) : MacroTokens |
Process inline filters ($var|filter) |
|
modifierPass ( MacroTokens $tokens, $var, $isContent = FALSE ) : MacroTokens |
Formats modifiers calling. |
|
preprocess ( MacroTokens $tokens = NULL ) : MacroTokens |
Preprocessor for tokens. (It advances tokenizer to the end as a side effect.) |
|
quotingPass ( MacroTokens $tokens ) : MacroTokens |
Quotes symbols to strings. |
|
removeCommentsPass ( MacroTokens $tokens ) : MacroTokens |
Removes PHP comments. |
|
shortTernaryPass ( MacroTokens $tokens ) : MacroTokens |
Simplified ternary expressions without third part. |
|
using ( MacroNode $node ) |
|
|
validateTokens ( MacroTokens $tokens ) : void |
|
|
write ( $mask ) : string |
Expands %node.word, %node.array, %node.args, %escape(), %modify(), %var, %raw, %word in code. |
|