docstr: Parse a primitive regexp followed by *, +, ? modifiers.
docstr_tok: ["Parse","a","primitive","regexp","followed","by","*",",","+",",","?","modifiers","."]
code: def parse_mod(self):
      """Parse a primitive regexp followed by *, +, ? modifiers."""
      re = self.parse_prim()
      while not self.end and self.c in "*+?":
          if self.c == "*":
              re = Rep(re)
          elif self.c == "+":
              re = Rep1(re)
          else:  # self.c == '?'
              re = Opt(re)
          self.next()
      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 5 for calling the REParser obj's underlying member method code with example usage: obj.parse_mod() and returns: re