Legacy whistle code in typescript
$ deno install whistle -A -f https://raw.github.com/whistle-lang/whistle/master/cli/whistle.ts
$ whistle -h
$ whistle compile examples/HelloWorld.whi > HelloWorld.js
the file HelloWorld.js
should now look like this:
function Log(text){console.log(text);}(() => {Log("Hello World");})();
and running:
$ whistle run examples/HelloWorld.whi
will produce this output:
Hello World