def expect(self, c):
    if self.c == c:
      self.next()
    else:
      self.error("Missing %s" % repr(c))
Expect to find character |c| at current position.
dataset/ETHPy150Open ardekantur/pyglet/contrib/layout/layout/Plex/Traditional.py/REParser.expect