code: def p_enumItems(self, p):
          
          n = len(p)
          if n == 4:
              p[0] = p[1] + [p[3]]
          elif n == 2:
              p[0] = [p[1]]
          elif n == 3:  # typo case
              if p[2] == ',':
                  p[0] = p[1]
              else:
                  p[0] = p[1] + [p[2]]
docs: enumItems : enumItems ',' enumItem
                       | enumItem
                       | enumItems enumItem
                       | enumItems ',