Generic language analyser. Analysers are used to tranform the language-specific tokens into a set of ParserItems
This is the code documentation for the Pelzini project
Search documentation |
class AnalyserGeneric language analyser. Analysers are used to tranform the language-specific tokens into a set of ParserItems
AuthorsVariables
Functions
protected findTokenBackwardsToken $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 findTokenForwardsToken $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 getPosunknown $Analyser->getPos ( ); Returns the current position protected getTokenunknown $Analyser->getToken ( [ mixed $pos ] ); Returns a token at a specific position If no position is specified, uses the current position protected getTokenPosunknown $Analyser->getTokenPos ( ); Gets the position of the last token found using one of the search functions protected movePosBackwardvoid $Analyser->movePosBackward ( [ integer $num ] ); Moves the internal token pointer backwards protected movePosForwardvoid $Analyser->movePosForward ( [ integer $num ] ); Moves the internal token pointer forwards public processvoid $Analyser->process ( mixed $tokens , mixed $parser_file ); Processes a set of token and populates a ParserFile public resetStatevoid $Analyser->resetState ( ); Resets the analyser ready for more parsing work protected setPosvoid $Analyser->setPos ( mixed $pos ); Sets the current position protected setTokensvoid $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 |