#NEWLINE# def visit_Case( self , caseexpr ) : #NEWLINE# #INDENT# if ( caseexpr . else_expr is not None ) : #NEWLINE# #INDENT# else_compiled = self . stack . pop ( ) #NEWLINE# #UNINDENT# when_compiled = [ ] #NEWLINE# for _ in range ( len ( caseexpr . when_tuples ) ) : #NEWLINE# #INDENT# ( thenexpr , ifexpr ) = ( self . stack . pop ( ) , self . stack . pop ( ) ) #NEWLINE# when_compiled . insert ( 0 , ( ifexpr , thenexpr ) ) #NEWLINE# #UNINDENT# self . stack . append ( self . language . conditional ( when_compiled , else_compiled ) )