docstr: Expect to find character |c| at current position.
  Raises an exception otherwise.
docstr_tok: ["Expect","to","find","character","|c|","at","current","position",".","Raises","an","exception","otherwise","."]
code: def expect(self, c):
      """
      Expect to find character |c| at current position.
      Raises an exception otherwise.
      """
      if self.c == c:
          self.next()
      else:
          self.error("Missing %s" % repr(c))
  
file_path: catboost/contrib/tools/cython/Cython/Plex/Traditional.py
imports: from __future__ import absolute_import
  from .Regexps import Alt, Seq, Rep, Rep1, Opt, Any, AnyBut, Bol, Eol, Char
  from .Errors import PlexError
label_desc: Use image node_id 11 for calling the REParser obj's underlying member method code with example usage: obj.expect(c) without return types