#NEWLINE# def run_tr( self , ast , prod ) : #NEWLINE# #INDENT# self . parser = CoreTr ( [ ast ] ) #NEWLINE# self . parser . i = self #NEWLINE# try : #NEWLINE# #INDENT# self . parser . apply ( prod ) #NEWLINE# #UNINDENT# except Exception as err : #NEWLINE# #INDENT# if hasattr ( err , 'formatError' ) : #NEWLINE# #INDENT# P ( err ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# traceback . print_exc ( ) #NEWLINE# #UNINDENT# exit ( 1 )