public static function getTokens($str, $strict = false, $delimiter = null)
    {
        $lexer = new self($str, $strict, $delimiter);

        return $lexer->list;
    }
public static function getTokens($str, $strict = false, $delimiter = null)
    {
        $lexer = new self($str, $strict, $delimiter);

        return $lexer->list;
    }
public static function getTokens ( $ str , $ strict = false , $ delimiter = null ) { $ lexer = new self ( $ str , $ strict , $ delimiter ) ; return $ lexer -> list ; }
Gets the tokens list parsed by a new instance of a lexer.

@param string|UtfString $str       the query to be lexed
@param bool             $strict    whether strict mode should be
enabled or not
@param string           $delimiter the delimiter to be used

@return TokensList
Gets the tokens list parsed by a new instance of a lexer .