src/Lexer.php
public function lex($input)
    {
        $this->input = $input;
        $this->length = strlen($input);
        $this->position = 0;
        $this->stream = array();

        while ($this->match()) {
            // noop
        }

        return new TokenStream($this->stream);
    }
public function lex($input)
    {
        $this->input = $input;
        $this->length = strlen($input);
        $this->position = 0;
        $this->stream = array();

        while ($this->match()) {
            // noop
        }

        return new TokenStream($this->stream);
    }
{@inheritdoc}