lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Oct 5, 2011 at 9:40 AM, Fabio Mascarenhas <mascarenhas@acm.org> wrote:
> There is another Lua REPL, together with a definitions area for
> writing and evaluating bigger scripts, at http://repl.it.
On Wed, Oct 5, 2011 at 10:11 AM, Alexander Gladysh <agladysh@gmail.com> wrote:
> http://redis.io/commands/sadd
> The Examples section is interactive, so you can play further with
> objects that were created in the original example.

If you've tried DrRacket (formerly DrScheme), they take a similar
approach of having a definitions area that is separate from the REPL.

    "DrScheme provides and enforces this batch-oriented style of
interactive program
evaluation in a natural way. When the programmer is ready to test a program,
a click on the Execute button submits the program to the interactions window.
When the programmer clicks on Execute, the repl is set to its initial
state and the
text from the definitions window is evaluated in the fresh
environment. Thus, the
repl namespace exactly reflects the program in the definitions window. Next, the
programmer evaluates test expressions in the repl [...]"
   -- http://www.ccs.neu.edu/scheme/pubs/jfp01-fcffksf.pdf