#NEWLINE# def compose( code , game_program = game ) : #NEWLINE# #INDENT# global game #NEWLINE# if ( game_program is None ) : #NEWLINE# #INDENT# game = game_program = Game ( ) #NEWLINE# #UNINDENT# python_land = ast . parse ( code ) #NEWLINE# builder = PyNesTransformer ( ) #NEWLINE# builder . visit ( python_land ) #NEWLINE# turist = PyNesVisitor ( ) #NEWLINE# turist . visit ( python_land ) #NEWLINE# python_land = ast . fix_missing_locations ( python_land ) #NEWLINE# game = None #NEWLINE# return game_program