class TokenStream
Represents a token stream.
$current |
__construct(array $tokens) Constructor. | ||
string | __toString() Returns a string representation of the token stream. | |
next() Sets the pointer to the next token and returns the old one. | ||
expect($type, $value = null, $message = null) Tests a token. | ||
bool | isEOF() Checks if end of stream was reached. |
Constructor.
Returns a string representation of the token stream.
Sets the pointer to the next token and returns the old one.
Tests a token.
Checks if end of stream was reached.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/ExpressionLanguage/TokenStream.html