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 |
ELENA command line VM terminal 6.0.7 (C)2021-23 by Aleksey Rakov |
||
ELENA VM |
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 |
|||
> |
>-pf(s1,s2,sep){^ s1 + sep + sep + s2 } |
||
>f("Rosetta","Code",":") |
>f("Rosetta","Code",":") |