[#24] New language: Oz

This commit is contained in:
Radon Rosborough 2020-10-03 21:26:57 -07:00
parent d9f9d3817a
commit fce9b88136
2 changed files with 22 additions and 0 deletions

View File

@ -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: {

View File

@ -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"