     f
 
   cont: (ast) ->
-    console.log("CONT")
     _(ast).inspect()
     # Get the real function from the last argument of CPS
     f = _(ast.arguments).last()


  err: (ast) ->
    ast.callee.name = HPPY_CALLBACK_NAME
    console.log("ERR")
    _(ast).inspect())

console.log "================ TEMPLATE  =============="
hppy.inspect(() ->
  myfunc = (fileName, cb) ->
    fs.readFile(fileName, 'utf8', (err, data) ->
      if err?
        cb(err)
      else
        cb(null, data)))

console.log "================ PRODUCT  =============="

eval(hppy(() ->
  myfunc = cps((fileName) ->

      else
        ret(data))))

  myfunc('testfile', (err, data) ->
    if err?
      # Log output for system administrators
      console.error err
    else
      console.log "No errors"
      console.log data)))

