def MakeStatementGenerator(depth):
 if (depth == MAX_DEPTH):
  (yield '')
 else:
  for stmtGen in stmt_gens:
   for value in stmtGen().generate(depth):
    (yield Indent(value, depth))

def MakeStatementGenerator ( depth ) : if ( depth == MAX_DEPTH ) : ( yield '' ) else : for stmtGen in stmt_gens : for value in stmtGen ( ) . generate ( depth ) : ( yield Indent ( value , depth ) )
yields all possible expressions .