[#24] New language: ABC

This commit is contained in:
Radon Rosborough 2020-10-03 19:56:29 -07:00
parent bb8bcc96a7
commit 2fa58a9683
3 changed files with 29 additions and 0 deletions

View File

@ -74,6 +74,19 @@ export const langs: { [key: string]: LangConfig } = {
`,
skip: ["scope"],
},
abc: {
name: "ABC",
repl: "abc",
input: `WRITE 123 * 234`,
main: "main.abc",
run: `abc "$PWD/main.abc" -`,
scope: {
code: `PUT 123 * 234 IN x`,
input: `WRITE x`,
},
template: `WRITE "Hello, world!" /
`,
},
ada: {
aliases: ["adb"],
name: "Ada",

View File

@ -16,6 +16,9 @@ aplus-fsf
aplus-fsf-doc
rlwrap
# ABC
libtinfo5:i386
# Ada
gnat

View File

@ -26,6 +26,19 @@ wget -nv https://gist.githubusercontent.com/anonymous/6392418/raw/fish.py -O /us
sed -i 's:^#!.*:#!/usr/bin/env python3:' /usr/local/bin/fish-lang
chmod +x /usr/local/bin/fish-lang
# ABC
wget -nv https://homepages.cwi.nl/~steven/abc/implementations/abc.tar.gz
mkdir /opt/abc
tar -xf abc.tar.gz -C /opt/abc --strip-components=1
chmod +x /opt/abc/abc /opt/abc/abckeys
tee /usr/local/bin/abc >/dev/null <<"EOF"
#!/usr/bin/env bash
cd /opt/abc
exec ./abc "$@"
EOF
chmod +x /usr/local/bin/abc
rm abc.tar.gz
# Ada
wget -nv https://dl.bintray.com/reznikmm/ada-language-server/linux-latest.tar.gz
tar -xf linux-latest.tar.gz