Implements interfaces:
Smart iterator for tokens obtained parsed code.
Located in /pt-parser.php (line 43)
Braces counter for the block function.
State for the block function.
Possible modifiers for upcoming tokens.
Distance since the modifier was captured.
Tokens of modifiers to be captured.
Current Position
Token list
Constructor -- tokenizes code.
Function required for the Iterator interface.
Returns true while till the _upcoming_ pair of braces is matched.
Useful for parsing blocks encapsulated using { }: for example, to parse a function definition. Should only be used from the _same place_ in a single file: identifying which block must be managed is done on the basis of uniqueness of the line number and the file name.
Can also be passed an id to over-ride the auto generated id when the 1st stack frame from `debug_backtrace` doesn't prove sufficient for identifing the final caller: for example from a constructor of another class.
Returns a PT_Parser_Token instance or NULL in case the iterator has overshot.
Function required for the Iterator interface.
Run on all tokens internally. Useful in derived classes.
Returns the current key val.
Function required for the Iterator interface.
Returns the line of the current token.
Saves modifiers for future tokens.
Saves modifiers from the mod_list, resets in case they become inapplicable.
Moves to the next token and runs an 'each' internal call.
Function required for the Iterator interface.
Resets all modifiers
Return to the start.
Function required for the Iterator interface.
Skip tokens till the specified token is reached.
Useful for exploratory parsing
Return the current val of the token.
Checks whether the iterator can still move forward.
Function required for the Iterator interface.
Documentation generated on Thu, 29 Sep 2011 01:44:45 +0530 by phpDocumentor 1.4.3