| [ Index ] |
PHP Cross Reference of Limb3 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 409 lines (16 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
PHPParser:: (5 methods):
processLine()
getLineType()
isContinuation()
getTokenType()
getLastTokenType()
| processLine($line) X-Ref |
| Process a line read from the file and determine if it is an executable line or not. This is the work horse function that does most of the parsing. To parse PHP, get_all_tokens() tokenizer function is used. param: $line Line to be parsed. |
| getLineType() X-Ref |
| Returns the type of line just read return: Line type |
| isContinuation(&$token) X-Ref |
| Check if a line is a continuation of the previous line param: &$token Second token in a line (after PHP start) return: Boolean True if the line is a continuation; false otherwise |
| getTokenType($token) X-Ref |
| Get the token type of a token (if exists) or the token itself. param: $token Token return: Token type or token itself |
| getLastTokenType(&$tokens) X-Ref |
| Return the type of last non-empty token in a line param: &$tokens Array of tokens for a line return: mixed Last non-empty token type (or token) if exists; false otherwise |
| Generated: Sat Nov 22 03:48:54 2008 | Cross-referenced by PHPXref 0.7 |