Interactive programming (repl): Difference between revisions

Content added Content deleted
(→‎Insitux: inclusion)
imported>Arakov
Line 384: Line 384:
ELENA Script is a subset of the general language. ELT (Virtual machine terminal) can work in REPL mode
ELENA Script is a subset of the general language. ELT (Virtual machine terminal) can work in REPL mode
<syntaxhighlight lang="elena">
<syntaxhighlight lang="elena">
c:\Alex\ELENA\bin>elt
c:\Alex\ELENA\bin>elt-cli
ELENA command line VM terminal 5.1.13 (C)2011-2020 by Alexei Rakov
ELENA command line VM terminal 6.0.7 (C)2021-23 by Aleksey Rakov
ELENA VM 5.1.17 (C)2005-2020 by Alex Rakov
ELENA VM 6.0.25 (C)2022-2023 by Aleksey Rakov
Initializing...
Initializing...
-q - quit
Done...
-c - clear
-h - help
-l <path> - execute a script from file
-p<script>; - prepend the prefix code
{ <script>; }*
<script> - execute script


>f(s1,s2,sep){^ s1 + sep + sep + s2 };
>-pf(s1,s2,sep){^ s1 + sep + sep + s2 }


>f("Rosetta","Code",":")
>f("Rosetta","Code",":")