Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions archive/a/algol60/hello-world.alg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
begin
outstring(1, "Hello, World!\n");
end
20 changes: 20 additions & 0 deletions archive/a/algol60/testinfo.yml
Original file line number Diff line number Diff line change
@@ -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)
Loading