#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# return ( ( self . chain == other . chain ) and ( self . rule == other . rule ) and ( self . top == other . top ) and ( self . wrap == other . wrap ) )