Méthode |
Description |
|
delegate ( string $parserClass ) : Ast |
Delegate the parsing process to a subparser |
|
endOfTokens ( integer $position ) : boolean |
Validate if the of the token stream is reached. The position parameter
may be provided to look forward. |
|
ignore ( array | integer | string $expectedTokens ) : boolean |
Try to read any of the $expectedTokens from the token stream and remove them
from it. |
|
lookahead ( array | integer | string $expectedTokens, integer $position, boolean $allowEndOfTokens = FALSE ) : Token | null |
Try to match any of the $expectedTokens against the given token stream
position and return the matching one. |
|
matchToken ( integer $position, integer $type ) : boolean |
Match a token on the token stream against a token type. |
|
read ( array | integer | string $expectedTokens ) : Token |
Try to read any of the $expectedTokens from the token list and return
the matching one. |
|