TokenStream

TokenStream

class TokenStream

CSS selector token stream.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Methods

$this push(Token $token)

Pushes a token.

$this freeze()

Freezes stream.

Token getNext()

Returns next token.

Token getPeek()

Returns peeked token.