def _get_entry_point(self):
    """Gets the entry_point value for the parser."""
    ep = self._find_directive("entry_point")
    if ep:
      return ep.args["value"]
    else:
      return self.rules[0].name
Gets the entry_point value for the parser.