问题
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.
回答1:
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/
回答2:
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.
回答3:
also check out:
- Ideone for languages which need to be compiled like C++/Java
- and a neat all-in-one web development editor JSFiddle
- and also Codepad
not to mention pastebin-like places:
- Pastebin
- Gist@GitHub
- Hastebin
- Codr.cc - Code live!
回答4:
Yet another REPL for PHP - Boris (https://github.com/d11wtq/boris)
回答5:
A real good initiative that deserves acclaim..(for PHP only).
http://codepad.viper-7.com/
回答6:
A simple, online repl for PHP: http://phpepl.herokuapp.com/
回答7:
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