code: def p_compound_list(p):
      '''compound_list : list
                       | newline_list list1'''
      if len(p) == 2:
          p[0] = p[1]
      else:
          parts = p[2]
          if len(parts) > 1:
              p[0] = ast.node(kind='list', parts=parts, pos=_partsspan(parts))
          else:
              p[0] = parts[0f p_compound_list(p):
      '''compound_list : list
                       | newline_list list1'''
      if len(p) == 2:
          p[0] = p[1]
      else:
          parts = p[2]
          if len(parts) > 1:
              p[0] = ast.node(kind='list', parts=parts, pos=_partsspan(parts))
          else:
              p[0] = parts[0]
docs: compound_list : list
                       | newline_list list1