void backupPos(
string
$word)
Occasionally, a word will be passed to an event handler that should be handled by another event handler. This method allows that to happen.
Overridden in child classes as:
string getBlock(
integer
$start, integer
$len)
int getPos(
)
string getSource(
)
Overridden in child classes as:
string|false getWord(
)
The Parser class relies upon this method to retrieve the next token. The $wordseperators array is a collection of strings that delineate tokens for the current parser state. $wordseperators is set by the parser with a call to Parser::configWordParser() every time a new parser state is reached.
For example, while parsing the source code for a class, the word
If the whitespace option has been turned off using setWhitespace(), then no whitespace is returned with tokens
{@ is of course the string containing the PHP code to be parsed, and $pos is the cursor, or current location within the parsed data. }}
Overridden in child classes as:
void setPos(
integer
$pos)
void setSeperator(
array
&$seps)
void setup(
string
&$input)
Overridden in child classes as:
void setWhitespace(
[boolean
$val = false])