code: def yyparse(self, cfgfile, splitstring=0):
          
          re_grammar = self._read_file(cfgfile)
          mma = self._mpda(re_grammar, splitstring)
          return mma
docs: Args:
              cfgfile (str): The path for the file containing the CFG rules
              splitstring (bool): A boolean for enabling or disabling
                              the splitting of symbols using a space
          Returns:
              PDA: The generated PDA