Download or view rosettaify.frink in plain text format
/** This is a simple program that makes it easier to upload programs and their
output to Rosetta Code:
https://rosettacode.org/
It takes at least one argument (the Frink program name) and runs the
program and prints its output and formats it all in Rosetta-Code-friendly
tags. If more than the Frink program name are given as arguments, the
remaining arguments are passed to the Frink program.
It assumes that there is a program named "frink" in your path that runs
Frink programs.
*/
use Processes.frink
file = ARGS@0
text = trim[read[filenameToURL[file]]]
println["""=={{header|Frink}}==
<syntaxhighlight lang="frink">$text</syntaxhighlight>"""]
println["""{{out}}
<pre>"""]
out = execLines["frink $file " + join[" ", rest[ARGS]]]
for line = out
println[line]
println["""</pre>"""]
Download or view rosettaify.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20145 days, 12 hours, 39 minutes ago.