code: def p_EnterprisePart(self, p):
          
          n = len(p)
          if n == 3:
              p[0] = p[2]
          elif n == 5:  # common mistake case
              p[0] = p[3]
docs: EnterprisePart : ENTERPRISE objectIdentifier
                            | ENTERPRISE '{' objectIdentifier '}