[#24] New language: Slick
This commit is contained in:
parent
a88089cbd0
commit
3b5dd79799
|
@ -3247,6 +3247,17 @@ Ophelia:
|
|||
},
|
||||
template: `message("Hello, world!");
|
||||
`
|
||||
},
|
||||
slick: {
|
||||
name: "Slick",
|
||||
repl: "slick",
|
||||
input: `DELAY: 1
|
||||
123 * 234`,
|
||||
main: "main.sl",
|
||||
run: "slick main.sl; slick",
|
||||
template: `def main:
|
||||
print "Hello, world!"
|
||||
`,
|
||||
},
|
||||
smalltalk: {
|
||||
aliases: ["gst", "st"],
|
||||
|
|
|
@ -109,6 +109,10 @@ npm install -g sass
|
|||
# Shakespeare
|
||||
pip3 install shakespearelang
|
||||
|
||||
# Slick
|
||||
opam install -y dune
|
||||
ln -s /opt/opam/default/bin/dune /usr/local/bin/dune
|
||||
|
||||
# TeX
|
||||
luarocks install digestif
|
||||
|
||||
|
|
|
@ -5,6 +5,9 @@ set -o pipefail
|
|||
set -x
|
||||
pushd /tmp >/dev/null
|
||||
|
||||
export OPAMROOT=/opt/opam
|
||||
export OPAMROOTISOK=1
|
||||
|
||||
# Aheui
|
||||
git clone https://github.com/aheui/caheui.git
|
||||
pushd caheui >/dev/null
|
||||
|
@ -160,6 +163,17 @@ mv public/qlb/*.js /opt/qalb/
|
|||
popd >/dev/null
|
||||
rm -rf qalb
|
||||
|
||||
# Slick
|
||||
git clone https://github.com/kwshi/slick.git
|
||||
pushd slick >/dev/null
|
||||
opam switch create .
|
||||
opam install --switch . $(dune external-lib-deps src --display=quiet | grep -F - | sed 's/- //; s/\..*//') -y
|
||||
opam install --switch . menhir -y
|
||||
opam exec --switch . dune build
|
||||
mv _build/default/src/exe/main.exe /usr/local/bin/slick
|
||||
popd >/dev/null
|
||||
rm -rf slick
|
||||
|
||||
# Snobol
|
||||
file="$(curl -sSL ftp://ftp.snobol4.org/snobol/ | grep -Eo 'snobol4-.*\.tar\.gz' | sort -rV | head -n1)"
|
||||
wget -nv "ftp://ftp.snobol4.org/snobol/${file}"
|
||||
|
|
Loading…
Reference in New Issue