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 |
|
Properties
int | $depth |
Methods
__construct($input = NULL)
No description
parse($s)
No description
append($val, $position = NULL)
Appends simple token or string (will be parsed).
prepend($val)
Prepends simple token or string (will be parsed).
string
fetchWord()
Reads single token (optionally delimited by comma) from string.
array
fetchWords()
Reads single tokens delimited by colon from string.
reset()
No description
next()
Moves cursor to next token.
Details
at line 35
__construct($input = NULL)
No description
at line 42
parse($s)
No description
at line 63
MacroTokens
append($val, $position = NULL)
Appends simple token or string (will be parsed).
at line 80
MacroTokens
prepend($val)
Prepends simple token or string (will be parsed).
at line 94
string
fetchWord()
Reads single token (optionally delimited by comma) from string.
at line 106
array
fetchWords()
Reads single tokens delimited by colon from string.
at line 117
TokenIterator
reset()
No description
at line 124
protected
next()
Moves cursor to next token.