From fce9b88136b18c8c59883c2eeb4bccce99da0ab0 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 3 Oct 2020 21:26:57 -0700 Subject: [PATCH] [#24] New language: Oz --- backend/src/langs.ts | 16 ++++++++++++++++ scripts/docker-install-phase4.bash | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 9cede8b..8cb7be9 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -2444,6 +2444,22 @@ rofl lol compile: "pandoc main.org -o main.html", run: "prettier --no-config main.html", template: `Hello, world! +`, + }, + oz: { + aliases: ["mozart", "mozart2"], + name: "Oz", + main: "main.oz", + compile: "ozc -c main.oz", + run: "ozengine main.ozf", + template: `functor +import + Application + System +define + {System.showInfo 'Hello, world!'} + {Application.exit 0} +end `, }, parigp: { diff --git a/scripts/docker-install-phase4.bash b/scripts/docker-install-phase4.bash index ebdf8d7..58ae543 100755 --- a/scripts/docker-install-phase4.bash +++ b/scripts/docker-install-phase4.bash @@ -262,6 +262,12 @@ ver="$(latest_release OlegSmelov/omgrofl-interpreter)" mkdir /opt/omgrofl wget -nv "https://github.com/OlegSmelov/omgrofl-interpreter/releases/download/${ver}/Omgrofl.jar" -O /opt/omgrofl/Omgrofl.jar +# Oz +ver="$(latest_release mozart/mozart2)" +wget -nv "https://github.com/mozart/mozart2/releases/download/${ver}/mozart2-$(sed 's/^v//' <<< "$ver")-x86_64-linux.deb" +dpkg -i mozart2-*-x86_64-linux.deb +rm mozart2-*-x86_64-linux.deb + # PowerShell ver="$(latest_release PowerShell/PowerShell)" wget -nv "https://github.com/PowerShell/PowerShell/releases/download/${ver}/powershell-$(sed 's/^v//' <<< "$ver")-linux-x64.tar.gz"