예제 #1
0
파일: special.py 프로젝트: charyorde/dao
 def throwing_cont(value, solver): 
   yield unwind(stop_cont, value, tag, cont, solver), value
예제 #2
0
파일: special.py 프로젝트: charyorde/dao
 def unwind_cont(value, solver):
   yield unwind(cont0, form_value, tag, stop_cont, solver, next_cont), form_value
예제 #3
0
파일: solve.py 프로젝트: charyorde/dao
def done_lookup(cont, tag, stop_cont, solver): 
  @mycont(cont)
  def loopkup_fail_cont(value, solver):
    raise  DaoUncaughtThrow(tag)
  return unwind(stop_cont, None, tag, loopkup_fail_cont, solver)