Pelzini

This is the code documentation for the Pelzini project

function findTokenBackwards()

Finds a token looking backwards from the current position.
Searching starts before the current token.
The token must be of the type specified

Usage

Token $Analyser->findTokenBackwards ( mixed $token_types [, mixed $stop_list ] );

Authors

Arguments

  1. mixed $token_types
    A token type constant, or an array of token type constants
  2. mixed $stop_list = NULL
    Token(s) that should stop the search process

Return value

  • Token
    The found token, or null if nothing was found