

def parse(self, parser, tokens):
    '\n        Parse a token stream\n        '
    self.parser = parser
    self.bits = tokens.split_contents()
    self.tagname = self.bits.pop(0)
    self.kwargs = {
        
    }
    self.blocks = {
        
    }
    self.forced_next = None
    self.arguments = self.options.get_arguments()
    self.current_argument = None
    self.todo = list(tokens.bits)
    breakpoint = False
    for bit in self.bits:
        breakpoint = self.handle_bit(bit)
    if breakpoint:
        raise TrailingBreakpoint(self.tagname, breakpoint)
    self.finish()
    self.parse_blocks()
    return (self.kwargs, self.blocks)

dataset/ETHPy150Open ojii/django-classy-tags/classytags/parser.py Parser.parse/VarMisuse@93/112 `self`->`tokens`