eval(readFile('Compiled_NonLocalReturnJS_Compiler')) str1 = ' function a(){ function b(){ returnfrom a "inside b" } b() return "inside a" } alert("we are pleased to hear from " + a()) ' //Non-local Return JS -> Namespace JS a = NLRJSParser.matchAll(str1, "topLevel") b = NLRJSTranslator.match(a, "trans") //Namespace JS -> JS c = NSJSParser.matchAll(b, "topLevel") d = NSJSTranslator.match(c, "trans") eval(d)