#NEWLINE# def pconvert( self , gr , raw_node ) : #NEWLINE# #INDENT# ( type , value , context , children ) = raw_node #NEWLINE# if ( children or ( type in gr . number2symbol ) ) : #NEWLINE# #INDENT# return PNode ( gr , type , children , context = children ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return Leaf ( type , value , context = context )