From f730ac67921448775bf1542e732d11469d55e0f7 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 26 Sep 2020 10:35:41 -0700 Subject: [PATCH] [#24] New language: Subleq --- backend/src/langs.ts | 25 +++++++++++++++++++++++++ scripts/docker-install-phase6.bash | 7 +++++++ 2 files changed, 32 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 46377d1..f990e25 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -2458,6 +2458,31 @@ END }, template: `print "Hello, world!\\n"; `, + }, + subleq: { + aliases: ["sq", "asq"], + name: "Subleq", + main: "main.sq", + run: "sq main.sq", + template: `12 12 3 +36 37 6 +37 12 9 +37 37 12 +0 -1 15 +38 36 18 +12 12 21 +53 37 24 +37 12 27 +37 37 30 +36 12 -1 +37 37 0 +39 0 -1 +72 101 108 +108 111 44 +32 119 111 +114 108 100 +33 10 53 +` }, swift: { aliases: ["swiftc"], diff --git a/scripts/docker-install-phase6.bash b/scripts/docker-install-phase6.bash index d415d08..180f19f 100755 --- a/scripts/docker-install-phase6.bash +++ b/scripts/docker-install-phase6.bash @@ -104,6 +104,13 @@ mv snobol4 /usr/local/bin/snobol4 popd >/dev/null rm -rf snobol4-* +# Subleq +git clone https://github.com/davidar/subleq.git +pushd subleq/src >/dev/null +make sq +mv sq /usr/local/bin/ +popd >/dev/null + # Tabloid mkdir /opt/tabloid pushd /opt/tabloid >/dev/null