This class is used to represent a token that has been tokenised using a Lexer. (e.g. the JavascriptLexer) These tokens are used to create various ParserItems, by passing them to an Analyser (e.g. the JavascriptAnalyser)
This is the code documentation for the Pelzini project
Search documentation |
class TokenThis class is used to represent a token that has been tokenised using a Lexer. (e.g. the JavascriptLexer) These tokens are used to create various ParserItems, by passing them to an Analyser (e.g. the JavascriptAnalyser)
Variables
Functions
public __constructvoid $Token->__construct ( mixed $type [, mixed $value ] ); This function does not have a description public getLineNumunknown $Token->getLineNum ( ); Gets the line number this toekn public getTypeNameunknown $Token->getTypeName ( ); Uses some PHP cleverness to get the name of the constant that this token referres to. Good for debugging public getValueunknown $Token->getValue ( ); Gets the value of this token public gettypeunknown $Token->gettype ( ); Gets the type of this token public setCurrLineNumvoid Token::setCurrLineNum ( int $line ); Set the "current" line number. New tokens have a line number set to this figure. public setIncrLineNumvoid Token::setIncrLineNum ( [ mixed $incr ] ); Increment the "current" line number. New tokens have a line number set to this figure. |
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 |