From 038334f239ab80d3f637a6dcd6e90f7014b0e884 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Fri, 2 Oct 2020 16:51:12 -0700 Subject: [PATCH] [#24] New language: Nickle --- backend/src/langs.ts | 13 +++++++++++++ scripts/docker-install-phase3c.bash | 3 +++ 2 files changed, 16 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 8318400..d6df18d 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -2251,6 +2251,19 @@ message: compile: "nekoc main.neko", run: "neko main", template: `$print("Hello, world!\\n"); +`, + }, + nickle: { + name: "Nickle", + repl: "nickle", + main: "main.nickle", + run: `nickle main.nickle; echo "Type 'load \\"main.nickle\\"' at the repl prompt to bring variables into scope" >&2; nickle`, + scope: { + code: `x = 123 * 234;`, + input: `load "main.nickle" +x`, + }, + template: `printf("Hello, world!\\n"); `, }, nim: { diff --git a/scripts/docker-install-phase3c.bash b/scripts/docker-install-phase3c.bash index 0324a7f..8dd8ff0 100755 --- a/scripts/docker-install-phase3c.bash +++ b/scripts/docker-install-phase3c.bash @@ -31,6 +31,9 @@ mysql-server # Neko neko +# Nickle +nickle + # Nim nim