[#24] New language: Oberon

This commit is contained in:
Radon Rosborough 2020-10-03 20:57:39 -07:00
parent 2fa58a9683
commit 08a7dbdaee
3 changed files with 30 additions and 0 deletions

View File

@ -2293,6 +2293,22 @@ x`,
compile: "nim compile main.nim",
run: "./main",
template: `echo "Hello, world!"
`,
},
oberon: {
aliases: ["obn"],
name: "Oberon",
main: "Main.obn",
compile: "obnc Main.obn -o main",
run: "./main",
template: `MODULE Main;
IMPORT Out;
BEGIN
Out.String("Hello, world!");
Out.Ln;
END Main.
`,
},
objectivec: {

View File

@ -46,6 +46,10 @@ nim
nodejs
yarn
# Oberon
clang
make
# Objective-C
gcc
gnustep-devel

View File

@ -93,6 +93,16 @@ git clone https://github.com/bipinu/malbolge.git
clang malbolge/malbolge.c -o /usr/local/bin/malbolge
rm -rf malbolge
# Oberon
file="$(curl -sSL https://miasap.se/obnc/ | grep -F obnc_ | grep -Eo 'obnc_[^"]+' | grep -v win | head -n1)"
wget -nv "https://miasap.se/obnc/downloads/${file}"
tar -xf obnc_*.tar.gz
pushd obnc-* >/dev/null
./build
./install
popd >/dev/null
rm -rf obnc_*.tar.gz obnc-*
# Ook
git clone https://git.code.sf.net/p/esco/code esco
pushd esco >/dev/null