From b8188be56046ceade60f938a9211c33d6f4df84a Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 22 Aug 2020 22:25:50 -0600 Subject: [PATCH] New language: Boo --- backend/src/langs.ts | 11 +++++++++++ scripts/docker-install-phase4.bash | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 9c3afb4..fd1afe1 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -311,6 +311,17 @@ Nude pagoda careens. run: "cat main.blc | binary-to-text | tromp", template: `001010100100100001100101011011000110110001101111001011000010 000001110111011011110111001001101100011001000010000100001010 +`, + }, + boo: { + aliases: ["booc"], + name: "Boo", + setup: `mkdir -p "$HOME/.local/share" && touch "$HOME/.local/share/booish_history"`, + main: "main.boo", + repl: "booish", + compile: "booc main.boo", + run: "mono main.exe; booish", + template: `print "Hello, world!" `, }, brainf: { diff --git a/scripts/docker-install-phase4.bash b/scripts/docker-install-phase4.bash index 45c58ce..ef22563 100755 --- a/scripts/docker-install-phase4.bash +++ b/scripts/docker-install-phase4.bash @@ -39,6 +39,13 @@ wget -nv "ftp://ftp.gnu.org/gnu/apl/${file}" dpkg -i apl_*_amd64.deb rm apl_*_amd64.deb +# Boo +wget -nv https://github.com/boo-lang/boo/releases/download/unstable/boo-latest.zip +unzip boo-latest.zip +mv boo-latest /usr/local/lib/boo +chmod +x /usr/local/lib/boo/booc /usr/local/lib/boo/booish +ln -s /usr/local/lib/boo/booc /usr/local/lib/boo/booish /usr/local/bin/ + # Clojure ver="$(latest_release snoe/clojure-lsp)" wget -nv "https://github.com/snoe/clojure-lsp/releases/download/${ver}/clojure-lsp"