Given a list of parser path tokens, return a list of path objects
    for them.

def get_paths(path_tokens):
    """ Given a list of parser path tokens, return a list of path objects
    for them.
    """
    if len(path_tokens) == 0:
        return []

    token = path_tokens.pop()
    path = PathToken(token.alias, token.path)
    return [path] + get_paths(path_tokens)