MacroTokens
class MacroTokens extends TokenIterator
Macro tag tokenizer.
Constants
T_WHITESPACE |
|
T_COMMENT |
|
T_SYMBOL |
|
T_NUMBER |
|
T_VARIABLE |
|
T_STRING |
|
T_CAST |
|
T_KEYWORD |
|
T_CHAR |
|
SIGNIFICANT |
|
NON_SIGNIFICANT |
|
Properties
int | $depth |
Methods
__construct($input = [])
No description
array
parse(string $s)
No description
append($val, int $position = null)
Appends simple token or string (will be parsed).
prepend($val)
Prepends simple token or string (will be parsed).
string|null
fetchWord()
Reads single expression optionally delimited by comma.
array
string
joinUntilSameDepth(int|string ...$args)
No description
array|null
fetchWordWithModifier(string|string[] $modifiers)
No description
reset()
No description
void
next()
Moves cursor to next token.
Details
at line 43
__construct($input = [])
No description
at line 53
array
parse(string $s)
No description
at line 75
MacroTokens
append($val, int $position = null)
Appends simple token or string (will be parsed).
at line 94
MacroTokens
prepend($val)
Prepends simple token or string (will be parsed).
at line 106
string|null
fetchWord()
Reads single expression optionally delimited by comma.
at line 129
array
fetchWords()
deprecated
deprecated
No description
at line 148
string
joinUntilSameDepth(int|string ...$args)
No description
at line 166
array|null
fetchWordWithModifier(string|string[] $modifiers)
No description
at line 184
TokenIterator
reset()
No description
at line 191
protected void
next()
Moves cursor to next token.