Implements @for

def _do_for(self, rule, p_selectors, p_parents, p_children, scope, media, c_lineno, c_property, c_codestr, code, name):
        """
        Implements @for
        """
        var, _, name = name.partition('from')
        frm, _, through = name.partition('through')
        if not through:
            frm, _, through = frm.partition('to')
        frm = self.calculate(frm, rule[CONTEXT], rule[OPTIONS], rule)
        through = self.calculate(through, rule[CONTEXT], rule[OPTIONS], rule)
        try:
            frm = int(float(frm))
            through = int(float(through))
        except ValueError:
            pass
        else:
            if frm > through:
                frm, through = through, frm
                rev = reversed
            else:
                rev = lambda x: x
            var = var.strip()
            var = self.do_glob_math(
                var, rule[CONTEXT], rule[OPTIONS], rule, True)

            for i in rev(range(frm, through + 1)):
                rule[CODESTR] = c_codestr
                rule[CONTEXT][var] = str(i)
                self.manage_children(
                    rule, p_selectors, p_parents, p_children, scope, media)