Beispiel #1
0
 def _add_repeat_step(self, list_iter, parent):
     for i in range(parent.get_repeat_number()):
         # Get the next step in the list
         ps = Step.create_step(next(list_iter))
         # We can also check if we have another repeat here
         # Add the step to the parent
         parent.add_repeat_step(ps)
Beispiel #2
0
    def _next_step(self):
        list_iter = iter(self._read_step())
        for i in list_iter:
            s = Step.create_step(i)
            # Handle repeats
            if s.is_repeat():
                self._add_repeat_step(list_iter, s)

            yield s