riju/langs/oberon.yaml

37 lines
625 B
YAML

id: "oberon"
aliases:
- "obn"
name: "Oberon"
install:
prepare:
apt:
- libgc-dev
apt:
- libgc-dev
manual: |
path="$(curl -sSL https://miasap.se/obnc/ | grep -F obnc_ | grep -Eo 'obnc_[^"]+' | grep -v win | head -n1)"
wget "https://miasap.se/obnc/downloads/${path}" -O obnc.tar.gz
mkdir obnc
tar -xf obnc.tar.gz -C obnc --strip-components=1
pushd obnc
./build
./install --destdir="${pkg}"
popd
main: "Main.obn"
template: |
MODULE Main;
IMPORT Out;
BEGIN
Out.String("Hello, world!");
Out.Ln;
END Main.
compile: |
obnc Main.obn -o main
run: |
./main