I'm looking to find a REPL system that can be executed on a web page and that the server can react to. Is there anything out there (I'd assume it would have to be using Javascript/AJAX)? If there's a PHP implementation, it would be even more awesome, but for now I'm just looking for some kind of an implementation.
A JavaScript REPL: http://tech.einaregilsson.com/repl.html
A PHP REPL developed at Facebook: http://www.phpsh.org/
A Python REPL: http://www.trypython.org/
A Ruby REPL: http://tryruby.org/
A Haskell REPL: http://tryhaskell.org/
An R REPL: http://rstudio.org/
repl.it
Have you tried http://repl.it? It supports Ruby, Python, Lua, Scheme, JavaScript, Javascript.next, CoffeeScript, QBasic, Forth, Move and Kaffeine.
It also supports these esoteric languages: Emoticon, Brainfuck, LOLCODE, Unlambda and Bloop
From their FAQ:
What is repl.it?
It is an online environment for interactively exploring programming languages. The name comes from the read-eval-print loop, the interactive toplevel used by languages like Lisp and Python.
Is repl.it open source?
Yes! You can explore the code and contribute to various parts of repl.it through our GitHub repositories.
Yet another REPL for PHP - Boris (https://github.com/d11wtq/boris)
A real good initiative that deserves acclaim..(for PHP only).
A simple, online repl for PHP: http://phpepl.herokuapp.com/
I've developed a C# REPL (open Source) which at the moment is an desktop app but not that hard to convert into a Web version: http://diniscruz.blogspot.co.uk/p/c-repl-script-environment.html
来源:https://stackoverflow.com/questions/5918670/repl-environment-for-the-web