diff --git a/archive/a/algol60/hello-world.alg b/archive/a/algol60/hello-world.alg new file mode 100644 index 000000000..c152bb3a3 --- /dev/null +++ b/archive/a/algol60/hello-world.alg @@ -0,0 +1,3 @@ +begin + outstring(1, "Hello, World!\n"); +end diff --git a/archive/a/algol60/testinfo.yml b/archive/a/algol60/testinfo.yml new file mode 100644 index 000000000..ab68810aa --- /dev/null +++ b/archive/a/algol60/testinfo.yml @@ -0,0 +1,20 @@ +language_display_name: "ALGOL 60" + +folder: + extension: ".alg" + naming: "hyphen" + +container: + image: "rzuckerm/algol60" + tag: "2.1.1-1" + build: | + sh -c 'jff-algol -r {{ source.name }}{{ source.extension }} && \ + (echo "#!/bin/sh"; \ + echo "(printf \"%d\0\" \"\$#\"; printf \"%s\0\" \"\$@\") | ./{{ source.name }} | tr -d \"\\0\"" \ + ) >{{ source.name }}.sh' + cmd: "sh {{ source.name }}.sh" + +notes: + - Since ALGOL 60 does not support command-line arguments directly, the command line arguments are delivered like this: + - - Number of arguments followed by null byte (ASCII 0) + - - Each argument is separated by a null byte (ASCII 0)