code: def p_declaration_list(self, p):
          
          if len(p) > 2:
              p[1].extend(p[2])
          p[0] = p[1]
docs: declaration_list           : declaration_list declaration
                                         | declaration
                                         | empty