diff options
author | Andinus <andinus@nand.sh> | 2021-11-02 13:31:59 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-11-02 13:31:59 +0530 |
commit | 5721d15df645d19857d68b67273f9bcf625b76fd (patch) | |
tree | 1560d6cb971ed5142e2105b7bc0e0bb8a583cae1 | |
parent | a05fc53d8aac886e5f6f1d358030b98fcdd884d6 (diff) | |
download | fornax-5721d15df645d19857d68b67273f9bcf625b76fd.tar.gz |
Basic implementation of fornax
-rw-r--r-- | fornax.raku | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fornax.raku b/fornax.raku new file mode 100644 index 0000000..7cac53e --- /dev/null +++ b/fornax.raku @@ -0,0 +1,14 @@ +use Cairo; + +subset Directory of Str where *.IO.d; + +#| Collection of tools to visualize Path Finding Algorithms +unit sub MAIN( + Str $script, #= script to run (e.g. java/DFS) + Directory :$algorithms = 'algorithms/', #= algorithms directory +); + +my Str $interpreter = $script.split("/").first; +my IO() $program-path = $algorithms ~ $script ~ '.' ~ $interpreter; + +die "Program path invalid" unless $program-path.IO.f; |