Interactive programming (repl): Difference between revisions

Add auto print example to lang
(Add lang example)
(Add auto print example to lang)
Line 798:
> fp.f(Rosetta, Code, :)
Rosetta::Code
>
</syntaxhighlight>
Example with auto print mode set to auto:
<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
> fn.setAutoPrintMode(AUTO)
==>
> fp.f = ($a, $b, $s) -> return $a$s$s$b
==> <Normal FP>
> fp.f(Rosetta, Code, :)
==> Rosetta::Code
>
</syntaxhighlight>
168

edits