def tokenize(text):
    """
    Convert a text to tokens.

    Example:
        >>> print(tokenize('Hello world!'))
        ['Hello', 'world', '!']

    :param    text: Text to tokenize.
    :type     text: str
    :return:        List of tokens.
    :rtype:         list
    """
    delimiters = ['.', ',', ':', ';', '?', '!', '<', '>', '[', ']', '(',
        ')', '"']
    for delimiter in delimiters:
        text = text.replace(delimiter, ' ' + delimiter + ' ')
    tokens = []
    for token in text.split(' '):
        if len(token) > 0:
            tokens.append(token)
    return tokens
