Interactive programming (repl): Difference between revisions
Content added Content deleted
No edit summary |
(Frink) |
||
Line 506: | Line 506: | ||
Separator ? : |
Separator ? : |
||
Rosetta::Code |
|||
</pre> |
|||
=={{header|Frink}}== |
|||
Frink is distributed as a single <CODE>.jar</CODE> file that will run in a Java Virtual Machine. On many operating systems, just double-clicking this <CODE>.jar</CODE> file will run Frink with a graphical interface in an interactive mode. By specifying a different main-class (<CODE>frink.parser.Frink</CODE>) when starting Frink, it can be run in a text-mode interactive mode as well. These options are described in the [https://frinklang.org/#RunningFrink Running Frink] section of the documentation. |
|||
<lang frink>$ java -cp frink.jar frink.parser.Frink |
|||
f[a,b,s] := "$a$s$s$b" |
|||
f["Rosetta", "Code", ":"]</lang> |
|||
{{out}} |
|||
<pre> |
|||
Rosetta::Code |
Rosetta::Code |
||
</pre> |
</pre> |