Description
WordParser
|
--phpDocumentorTWordParser
|
--phpDocumentor_HighlightWordParser
Located in File: /phpDocumentor/HighlightParser.inc
Retrieve tokens from an array of tokens organized by line numbers
Method Detail
Summary:
void
backupPos
(
array|string $last_token, [
bool $is_pos =
false])
Method backupPos (line 172)
void backupPos(
array|string
$last_token, [bool
$is_pos = false])
Overrides : phpDocumentorTWordParser::backupPos() backs the parser up to the previous position
back the word parser to the previous token as defined by $last_token
Parameters
- array|string $last_token: token, or output from nextToken()
- bool $is_pos: if true, backupPos interprets $last_token to be the position in the internal token array of the last token
Info
Method getWord (line 147)
array|string getWord(
)
Overrides : phpDocumentorTWordParser::getWord() Retrieve a token for the phpDocumentorTParser
Retrieve the next token
Info
- return - either array(PHP token constant, token) or string non-specific separator
Method nextToken (line 127)
array nextToken(
)
Retrieve the position of the next token that will be parsed in the internal token array
Info
- return - format: array(line number, position)