From 9b87d850b008320d2b892bd6f3592c811efa1c5f Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Fri, 17 Jul 2020 18:49:18 -0600 Subject: [PATCH] New language: Entropy --- backend/src/langs.ts | 12 ++++++++++++ scripts/docker-install-phase5.bash | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 4fd8cea..4773af6 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -599,6 +599,18 @@ output = "Hello, world!" all: `set -o pipefail; (curl -sS https://elpa.gnu.org/packages/ | grep '' | grep -Eo '[^>]+' | grep -Eo '^[^<]+' && curl -sS https://melpa.org/archive.json | jq -r 'keys | .[]') | sort | uniq`, }, template: `(message "Hello, world!") +`, + }, + entropy: { + aliases: ["ent", "entc", "vge"], + name: "Entropy", + monacoLang: "plaintext", + main: "main.vge", + compile: `mono /opt/entropy/entc.exe main.vge | grep -Ev 'WARNING:|Using default' > main.cs && mcs -lib:/opt/entropy -r:Rottytooth.Esolang.Entropy main.cs`, + run: "MONO_PATH=/opt/entropy mono main.exe", + template: `Program MyNamespace MyProgram [ + print "Hello, world!"; +] `, }, erlang: { diff --git a/scripts/docker-install-phase5.bash b/scripts/docker-install-phase5.bash index 7a19dbb..df1d9f0 100755 --- a/scripts/docker-install-phase5.bash +++ b/scripts/docker-install-phase5.bash @@ -55,6 +55,11 @@ gunzip binary-for-linux-64-bit.gz chmod +x binary-for-linux-64-bit mv binary-for-linux-64-bit /usr/bin/elm +# Entropy +wget -nv http://danieltemkin.com/Content/Entropy/Entropy.zip +unzip -d /opt/entropy Entropy.zip +rm Entropy.zip + # Erlang wget -nv https://s3.amazonaws.com/rebar3/rebar3 chmod +x rebar3