From 3fdf4cc8cab5a209ffbfadb4036e274e377727b3 Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Wed, 11 Mar 2026 19:24:32 -0500 Subject: [PATCH 1/2] Add ALGOL 60 Tests --- archive/a/algol60/hello-world.alg | 3 +++ archive/a/algol60/testinfo.yml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 archive/a/algol60/hello-world.alg create mode 100644 archive/a/algol60/testinfo.yml 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..8992014ff --- /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-dev" + 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) From ec6f35648f75f9aaed8d1476f4fbed91ae5e3fc0 Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Wed, 11 Mar 2026 19:30:23 -0500 Subject: [PATCH 2/2] Fix docker tag --- archive/a/algol60/testinfo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/a/algol60/testinfo.yml b/archive/a/algol60/testinfo.yml index 8992014ff..ab68810aa 100644 --- a/archive/a/algol60/testinfo.yml +++ b/archive/a/algol60/testinfo.yml @@ -6,7 +6,7 @@ folder: container: image: "rzuckerm/algol60" - tag: "2.1.1-dev" + tag: "2.1.1-1" build: | sh -c 'jff-algol -r {{ source.name }}{{ source.extension }} && \ (echo "#!/bin/sh"; \