Interactive programming (repl): Difference between revisions
m
→{{header|Wren}}: Version change.
m (→{{header|Wren}}: Version change.) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 384:
ELENA Script is a subset of the general language. ELT (Virtual machine terminal) can work in REPL mode
<syntaxhighlight lang="elena">
c:\Alex\ELENA\bin>elt-cli
ELENA command line VM terminal
ELENA VM
Initializing...
-q - quit
-c - clear
-h - help
-l <path> - execute a script from file
-p<script>; - prepend the prefix code
{ <script>; }*
<script> - execute script
>
>f("Rosetta","Code",":")
Line 670 ⟶ 676:
WRITE(ClipBoard) TRIM(A) // ':' // TRIM(C) // TRIM(B) ! Rosetta::Code</syntaxhighlight>
=={{Header|Insitux}}==
First is the system shell, when Insitux has been already been installed system-wide (<code>npm i -g insitux</code>).
<pre>
$ npx ix
Insitux 230728 REPL
❯ (function f s1 s2 sep (str s1 sep sep s2))
❯ (f "Rosetta" "Code" ":")
Rosetta::Code
❯
</pre>
=={{header|Io}}==
Line 1,938 ⟶ 1,957:
$ ./wren
\\/"-
\_/ wren v0.
> var f = Fn.new { |s1, s2, sep| s1 + sep + sep + s2 }
> f.call("Rosetta", "Code", ":")
|