~washort/pymeta/matched-sequences

« back to all changes in this revision

Viewing changes to pymeta/runtime.py

  • Committer: Allen Short
  • Date: 2008-04-23 16:23:14 UTC
  • Revision ID: washort@divmod.com-20080423162314-h3iukp8h42ja232l
list patterns produce the entire list

Show diffs side-by-side

added added

removed removed

Lines of Context:
368
368
        m = self.input.mark()
369
369
        try:
370
370
            try:
371
 
                list = IterBuffer(self.rule_anything())
 
371
                v = self.rule_anything()
 
372
                list = IterBuffer(v)
372
373
                self.input = list
373
374
            except TypeError:
374
375
                oldInput.rewind(m)
377
378
                oldInput.unmark(m)
378
379
            r = expr()
379
380
            self.end()
 
381
            return v
380
382
        finally:
381
383
            self.input = oldInput
382
 
        return r
383
384
 
384
385
 
385
386
    def end(self):