ansuz.js
function(){ // the main generator you'll return
        var res=kid(); // call the child function and store the result
        if(cond(res)&&failed){ // if both generators have failed
            return done(); // then you're done
        }else if(cond(res)){ // if just the child has failed
            par(); // regenerate the child array
            return fn(); // return the next child value
        }else{ // otherwise.. 
            return [temp,res]; // return combined parent and child values
        }
    }
function(){ // the main generator you'll return
        var res=kid(); // call the child function and store the result
        if(cond(res)&&failed){ // if both generators have failed
            return done(); // then you're done
        }else if(cond(res)){ // if just the child has failed
            par(); // regenerate the child array
            return fn(); // return the next child value
        }else{ // otherwise.. 
            return [temp,res]; // return combined parent and child values
        }
    }
function ( ) { // the main generator you'll return var res = kid ( ) ; // call the child function and store the result if ( cond ( res ) && failed ) { // if both generators have failed return done ( ) ; // then you're done } else if ( cond ( res ) ) { // if just the child has failed par ( ) ; // regenerate the child array return fn ( ) ; // return the next child value } else { // otherwise..  return [ temp , res ] ; // return combined parent and child values } }
now that the parent handler is defined, increment it
now that the parent handler is defined increment it