#NEWLINE# def __invert__( self ) : #NEWLINE# #INDENT# newnode = LookupNode ( ) #NEWLINE# for c in self . children : #NEWLINE# #INDENT# newnode . add_child ( c ) #NEWLINE# #UNINDENT# newnode . negate = ( not newnode . negate ) #NEWLINE# return newnode