src/ALexer.php
public function getToken()
    {
        if(isset($this->_tokens[$this->_position])) {
            return $this->_tokens[$this->_position];
        } else {
            return null;
        }
    }
public function getToken()
    {
        if(isset($this->_tokens[$this->_position])) {
            return $this->_tokens[$this->_position];
        } else {
            return null;
        }
    }
public function getToken ( ) { if ( isset ( $ this -> _tokens [ $ this -> _position ] ) ) { return $ this -> _tokens [ $ this -> _position ] ; } else { return null ; } }
Returns the current token on input.

@return \Gustav\Lexer\Token|null
The current token
Returns the current token on input .