#NEWLINE# def p_stmt_list1( p ) : #NEWLINE# #INDENT# ' stmt_list : stmt stmt_list ' #NEWLINE# stmt = p [ 1 ] #NEWLINE# if isinstance ( stmt , list ) : #NEWLINE# #INDENT# res = ( stmt + p [ 2 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# res = ( [ stmt ] + p [ 2 ] ) #NEWLINE# #UNINDENT# p [ 0 ] = res