Skip to content

Commit ef2fb6e

Browse files
authored
Add ALGOL 60 Tests (#5352)
1 parent c2d8be9 commit ef2fb6e

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

archive/a/algol60/hello-world.alg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
begin
2+
outstring(1, "Hello, World!\n");
3+
end

archive/a/algol60/testinfo.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language_display_name: "ALGOL 60"
2+
3+
folder:
4+
extension: ".alg"
5+
naming: "hyphen"
6+
7+
container:
8+
image: "rzuckerm/algol60"
9+
tag: "2.1.1-1"
10+
build: |
11+
sh -c 'jff-algol -r {{ source.name }}{{ source.extension }} && \
12+
(echo "#!/bin/sh"; \
13+
echo "(printf \"%d\0\" \"\$#\"; printf \"%s\0\" \"\$@\") | ./{{ source.name }} | tr -d \"\\0\"" \
14+
) >{{ source.name }}.sh'
15+
cmd: "sh {{ source.name }}.sh"
16+
17+
notes:
18+
- Since ALGOL 60 does not support command-line arguments directly, the command line arguments are delivered like this:
19+
- - Number of arguments followed by null byte (ASCII 0)
20+
- - Each argument is separated by a null byte (ASCII 0)

0 commit comments

Comments
 (0)