#NEWLINE# def sub_values( self , parsed ) : #NEWLINE# #INDENT# 'This knows how to convert one piece of parsed pattern.' #NEWLINE# if isinstance ( parsed , sre_parse . SubPattern ) : #NEWLINE# #INDENT# parsed = parsed . data #NEWLINE# #UNINDENT# if isinstance ( parsed , list ) : #NEWLINE# #INDENT# elements = [ self . sub_values ( p ) for p in parsed ] #NEWLINE# return CombinatoricsSequence ( * elements ) #NEWLINE# #UNINDENT# if ( isinstance ( parsed , tuple ) and matcher ) : #NEWLINE# #INDENT# ( matcher , arguments ) = parsed #NEWLINE# if ( not isinstance ( arguments , tuple ) ) : #NEWLINE# #INDENT# arguments = ( arguments , ) #NEWLINE# #UNINDENT# if ( matcher in self . backends ) : #NEWLINE# #INDENT# return self . backends [ matcher ] ( * arguments ) #NEWLINE# #UNINDENT# #UNINDENT# raise ParseError ( repr ( parsed ) )