Highlights source code using parse()
Located in /phpDocumentor/TutorialHighlightParser.inc (line 69)
Publisher | --Parser | --phpDocumentor_TutorialHighlightParser
Initialize the $tokenpushEvent, $wordpushEvent arrays
This function checks whether parameter $word is a token for popping the current event off of the Event Stack.
This function checks whether parameter $word is a token for pushing a new event onto the Event Stack.
Tell the parser's WordParser $wp to set up tokens to parse words by.
Tokens are word separators. In English, a space or punctuation are examples of tokens. In PHP, a token can be a ;, a parenthesis, or even the word "function"
searches for a parser event name based on its number
advances output to a new line
Parse a new file
The parse() method is a do...while() loop that retrieves tokens one by one from the $_event_stack, and uses the token event array set up by the class constructor to call event handlers.
The event handlers each process the tokens passed to them, and use the _addoutput() method to append the processed tokens to the $_line variable. The word parser calls newLineNum() every time a line is reached.
In addition, the event handlers use special linking functions _link() and its cousins (_classlink(), etc.) to create in-code hyperlinks to the documentation for source code elements that are in the source code.
Start the parsing at a certain line number
Initialize all parser state variables
Inherited From Parser
Parser::Parser()
Parser::categoryTagHandler()
Parser::checkEventPop()
Parser::checkEventPush()
Parser::configWordParser()
Parser::defaultTagHandler()
Parser::endTag()
Parser::exampleTagHandler()
Parser::getParserEventName()
Parser::globalTagHandler()
Parser::invalidTagHandler()
Parser::packageTagHandler()
Parser::paramTagHandler()
Parser::parse()
Parser::propertyTagHandler()
Parser::returnTagHandler()
Parser::setupStates()
Parser::staticvarTagHandler()
Parser::usesTagHandler()
Parser::varTagHandler()
Inherited From Publisher
Publisher::publishEvent()
Publisher::subscribe()
Documentation generated on Mon, 05 Dec 2011 21:01:19 -0600 by phpDocumentor 1.4.4