def parse_tokens(parser, tokens):
    """
    Shortcut for parsing args/kwargs from a list of tokens
    """
    args = []
    kwargs = []
    for token in tokens:
        if '=' in token:
            key, token = token.split('=')
            kwargs.append((key, parser.compile_filter(token)))
        else:
            args.append(parser.compile_filter(token))
    return args, dict(kwargs)
