#NEWLINE# def gen( self ) : #NEWLINE# #INDENT# self . parser = MemeParser ( open ( os . path . join ( MODULES_PATH , self . filename ) ) . read ( ) ) #NEWLINE# self . parser . i = self #NEWLINE# try : #NEWLINE# #INDENT# ast = self . parser . apply ( 'start' ) [ 0 ] #NEWLINE# #UNINDENT# except Exception as err : #NEWLINE# #INDENT# if hasattr ( self , 'formatError' ) : #NEWLINE# #INDENT# print ( err . formatError ( '' . join ( self . parser . input . data ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# traceback . print_exc ( ) #NEWLINE# #UNINDENT# exit ( 1 ) #NEWLINE# #UNINDENT# self . run_tr ( ast , 'start' ) #NEWLINE# self . dump ( )