docstr: Parse a primitive regexp.
docstr_tok: ["Parse","a","primitive","regexp","."]
code: def parse_prim(self):
      """Parse a primitive regexp."""
      c = self.get()
      if c == ".":
          re = AnyBut("\n")
      elif c == "^":
          re = Bol
      elif c == "$":
          re = Eol
      elif c == "(":
          re = self.parse_alt()
          self.expect(")")
      elif c == "[":
          re = self.parse_charset()
          self.expect("]")
      else:
          if c == "\\":
              c = self.get()
          re = Char(c)
      return re
  
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 6 for calling the REParser obj's underlying member method code with example usage: obj.parse_prim() and returns: re