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