From f6de928cf3acde2865ba9a84be2240e860182a1c Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 26 Sep 2020 20:33:36 -0700 Subject: [PATCH] [#24] New language: Yorick --- backend/src/langs.ts | 14 ++++++++++++++ scripts/docker-install-phase3d.bash | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 8869578..5c98828 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -3029,6 +3029,20 @@ message: `, }, template: `output: "Hello, world!" +`, + }, + yorick: { + name: "Yorick", + repl: "rlwrap yorick", + main: "main.i", + run: `echo "Type '#include \\"main.i\\"' to run the code." && rlwrap yorick`, + helloInput: `#include "main.i"`, + scope: { + code: `x = 123 * 234`, + input: `#include "main.i" +x`, + }, + template: `write, "Hello, world!" `, }, zot: { diff --git a/scripts/docker-install-phase3d.bash b/scripts/docker-install-phase3d.bash index b1e08a1..d77fd49 100755 --- a/scripts/docker-install-phase3d.bash +++ b/scripts/docker-install-phase3d.bash @@ -87,6 +87,10 @@ xsltproc # YAML jq +# Yorick +rlwrap +yorick + # Zot qt5-qmake qtscript5-dev