Re:Cling : C++ REPL using Clang and LLVM
by ewencp on Sunday February 19, 2012 @02:17AM
(#3608857)
Not exactly what you're suggesting, but https://github.com/jterrace/js.js is in a similar vein: SpiderMonkey -> LLVM -> emscripten -> JS to run a JS within JS.
I wonder if it'd be possible to compile Clang and Emscripten with Emscripten and make an (albeit slow) in-browser REPL for C.