Pelzini

This is the code documentation for the Pelzini project

function findTokenForwards()

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

Usage

Token $Analyser->findTokenForwards ( 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