Interactive programming (repl): Difference between revisions

Added Quackery.
(Changed the REPL as "nrpl" ne longer compiles and "tnim" is not very friendly compared to "inim".)
(Added Quackery.)
Line 1,266:
'Rosetta::Code'
>>></lang>
 
=={{header|Quackery}}==
 
The Quackery shell (REPL) can be invoked from the command line by invoking <code>quackery</code> without specifying a Quackery source file. The shell can be invoked from within a Quackery source file with the Quackery word <code>shell</code>. As the shell is nestable it can also be invoked from within the shell.
 
{{out}}
Invoking the shell first from the command line and then within the shell, and leaving first the nested shell then the outer shell.
 
<pre> > quackery
 
Welcome to Quackery.
 
Enter "leave" to leave the shell.
 
/O> say " now entering a nested shell..."
... shell
...
now entering a nested shell...
/O> say " now leaving the nested shell"
... leave
...
now leaving the nested shell
Auf wiedersehen.
 
 
Stack empty.
 
/O> say " now leaving the shell invoked at the command line"
... leave
...
now leaving the shell invoked at the command line
Goodbye.
 
 
> echo " back at the command line"
back at the command line
></pre>
 
=={{header|R}}==
1,462

edits