eval(readFile('NamespaceJS_Library_Compiled')) program_str =' newFunction1 = returnFromableFunction( function1 = function() { var function2 = function() {returnFrom(function1, "function2")} function2() return "function1" } ) alert("returning straight from " + newFunction1()) ' a = JSParser.matchAll(program_str, "topLevel") b = JSTranslator.match(a, "trans") eval(b)