~washort/parsley/new-codegen

« back to all changes in this revision

Viewing changes to ometa/interp.py

  • Committer: Allen Short
  • Date: 2013-01-12 22:30:20 UTC
  • Revision ID: washort@divmod.com-20130112223020-a4s2654uqi5vrlzv
slices in the trampolined interpreter must be strings

Show diffs side-by-side

added added

removed removed

Lines of Context:
415
415
        for x in self._eval(expr):
416
416
            if x is _feed_me: yield x
417
417
        slice = oldInput.data[oldInput.position:self.input.position]
418
 
        yield slice, x[1]
 
418
        yield "".join(slice), x[1]
419
419
 
420
420
    def rule_anything(self):
421
421
        """