code: def p_features(self, t):
          
  
          if len(t) == 4:
              t[0] = t[1]
              t[0].append(t[3])
          elif t[1]:
              t[0] = [t[1]]
          else:
              t[0] = []
docs: features : features AND feature
                      | feature
                      | empty