public function __construct(array $tokens) { $this->tokens = $tokens; $this->currentToken = null; $this->queue = array(); $this->cursor = 0; $this->eos = false; $this->next(); }