Jump to content

Interactive programming (repl): Difference between revisions

Add lang example
m (Fix lambdatalk and lasso examples were ordered incorrectly)
(Add lang example)
Line 778:
{F Rosetta Code :}
-> Rosetta::Code
</syntaxhighlight>
 
=={{header|Lang}}==
This example works with the LangShell from the Standard Lang implementation.
The lang shell can be started with (The LangShell does not run in the OS's shell, it will open a separate window):
<syntaxhighlight lang="shell">
$ lang -startShell
</syntaxhighlight>
<syntaxhighlight lang="lang">
Lang-Shell - Press CTRL + C for cancelling execution or for exiting!
• Copy with (CTRL + SHIFT + C) and paste with (CTRL + SHIT + V)
• Press CTRL + SHIFT + S for opening the special char input window
• Press UP and DOWN for scrolling through the history
• Press TAB and SHIFT + TAB for scrolling trough auto complete texts
◦ Press ENTER for accepting the auto complete text
• Press CTRL + L to clear the screen
• Use func.printHelp() to get information about LangShell functions
> fp.f = ($a, $b, $s) -> fn.println($a$s$s$b)
> fp.f(Rosetta, Code, :)
Rosetta::Code
>
</syntaxhighlight>
 
168

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.