def compose_all(stream, Loader=Loader):
 loader = Loader(stream)
 while loader.check_node():
  (yield loader.get_node())

def compose_all ( stream , Loader = Loader ) : loader = Loader ( stream ) while loader . check_node ( ) : ( yield loader . get_node ( ) )
parse all yaml documents in a stream and produce corresponding representation trees .