From 846caf2ad89f0b8db0e115c2446db27ba783927e Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Tue, 9 Jun 2020 13:34:07 -0600 Subject: [PATCH] At this point the number of languages is absurd --- backend/src/langs.ts | 23 +++++++++++++++++++++++ scripts/docker-install.bash | 13 +++++++++++++ 2 files changed, 36 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index c8a5814..a13e378 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -368,6 +368,15 @@ import "fmt" func main() { fmt.Println("Hello, world!") } +`, + }, + groovy: { + name: "Groovy", + monacoLang: "plaintext", + repl: "groovysh", + main: "main.groovy", + run: "groovysh main.groovy", + template: `print "Hello, world!"; `, }, haskell: { @@ -383,6 +392,20 @@ main = putStrLn "Hello, world!" `, hacks: ["ghci-config"], }, + ink: { + name: "Ink", + monacoLang: "plaintext", + repl: "ink", + main: "main.ink", + run: "ink main.ink; ink", + template: `std := load('../../opt/ink/std') +str := load('../../opt/ink/str') + +log := std.log + +log('Hello, world!') +`, + }, intercal: { name: "INTERCAL", monacoLang: "plaintext", diff --git a/scripts/docker-install.bash b/scripts/docker-install.bash index f3a75b4..b109650 100755 --- a/scripts/docker-install.bash +++ b/scripts/docker-install.bash @@ -140,6 +140,9 @@ gforth # Go golang +# Groovy +groovy + # Haskell cabal-install ghc @@ -326,6 +329,16 @@ chmod +x binary-for-linux-64-bit mv binary-for-linux-64-bit /usr/bin/elm rm binary-for-linux-64-bit.gz +# Ink +cd /tmp +wget -nv https://github.com/thesephist/ink/releases/download/v0.1.7/ink-linux +wget -nv https://github.com/thesephist/ink/releases/download/v0.1.7/std.ink +wget -nv https://github.com/thesephist/ink/releases/download/v0.1.7/str.ink +chmod +x ink-linux +mv ink-linux /usr/bin/ink +mkdir /opt/ink +mv std.ink str.ink /opt/ink/ + # Kotlin cd /tmp wget -nv https://github.com/JetBrains/kotlin/releases/download/v1.3.72/kotlin-compiler-1.3.72.zip