Analyses the javascript tokens, and creates a set of ParserItem objects.
This is the code documentation for the Pelzini project
Search documentation |
class JavascriptAnalyserAnalyses the javascript tokens, and creates a set of ParserItem objects.
AuthorsVariables
Functions
protected findTokenBackwards (from Analyser)Token $Analyser->findTokenBackwards ( mixed $token_types [, mixed $stop_list ] ); Finds a token looking backwards from the current position. Searching starts before the current token. The token must be of the type specified protected findTokenForwards (from Analyser)Token $Analyser->findTokenForwards ( mixed $token_types [, mixed $stop_list ] ); Finds a token looking forward from the current position. Searching starts after the current token. The token must be of the type specified protected getPos (from Analyser)unknown $Analyser->getPos ( ); Returns the current position protected getToken (from Analyser)unknown $Analyser->getToken ( [ mixed $pos ] ); Returns a token at a specific position If no position is specified, uses the current position protected getTokenPos (from Analyser)unknown $Analyser->getTokenPos ( ); Gets the position of the last token found using one of the search functions protected movePosBackward (from Analyser)void $Analyser->movePosBackward ( [ integer $num ] ); Moves the internal token pointer backwards protected movePosForward (from Analyser)void $Analyser->movePosForward ( [ integer $num ] ); Moves the internal token pointer forwards public processboolean $JavascriptAnalyser->process ( mixed $tokens , mixed $parser_file ); Should create ParserItem objects that represent the provided tokens and apply those objects to the ParserFile specified. public resetStatevoid $JavascriptAnalyser->resetState ( ); Resets any state variables used by this class back to their initial state protected setPos (from Analyser)void $Analyser->setPos ( mixed $pos ); Sets the current position protected setTokens (from Analyser)void $Analyser->setTokens ( mixed $tokens ); Tells the analyser what tokens it should use |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Thursday, 15th March, 2018 at 02:05 pm |