From 4ca01a6fdd5aec053e93d92c6236e92ba3a67274 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Fri, 17 Jul 2020 18:20:56 -0600 Subject: [PATCH] New language: Chef --- backend/src/langs.ts | 64 ++++++++++++++++++++++++++++++ scripts/docker-install-phase4.bash | 3 ++ 2 files changed, 67 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index d63e096..e24a840 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -293,6 +293,70 @@ int main() { printf("Hello, world!\\n"); return 0; } +`, + }, + chef: { + name: "Chef", + monacoLang: "plaintext", + main: "main.chef", + run: "chef main.chef", + template: `Hello World Cake with Chocolate Sauce. + +Ingredients. +33 g chocolate chips +100 g butter +54 ml double cream +2 pinches baking powder +114 g sugar +111 ml beaten eggs +119 g flour +32 g cocoa powder +0 g cake mixture + +Cooking time: 25 minutes. + +Pre-heat oven to 180 degrees Celsius. + +Method. +Put chocolate chips into the mixing bowl. +Put butter into the mixing bowl. +Put sugar into the mixing bowl. +Put beaten eggs into the mixing bowl. +Put flour into the mixing bowl. +Put baking powder into the mixing bowl. +Put cocoa powder into the mixing bowl. +Stir the mixing bowl for 1 minute. +Combine double cream into the mixing bowl. +Stir the mixing bowl for 4 minutes. +Liquefy the contents of the mixing bowl. +Pour contents of the mixing bowl into the baking dish. +bake the cake mixture. +Wait until baked. +Serve with chocolate sauce. + +Chocolate Sauce. + +Ingredients. +111 g sugar +108 ml hot water +108 ml heated double cream +101 g dark chocolate +72 g milk chocolate + +Method. +Clean the mixing bowl. +Put sugar into the mixing bowl. +Put hot water into the mixing bowl. +Put heated double cream into the mixing bowl. +dissolve the sugar. +agitate the sugar until dissolved. +Liquefy the dark chocolate. +Put dark chocolate into the mixing bowl. +Liquefy the milk chocolate. +Put milk chocolate into the mixing bowl. +Liquefy contents of the mixing bowl. +Pour contents of the mixing bowl into the baking dish. +Refrigerate for 1 hour. `, }, cmd: { diff --git a/scripts/docker-install-phase4.bash b/scripts/docker-install-phase4.bash index 3e489d9..6649580 100755 --- a/scripts/docker-install-phase4.bash +++ b/scripts/docker-install-phase4.bash @@ -36,6 +36,9 @@ npm install -g bash-language-server # Befunge npm install -g befunge93 prompt-sync +# Chef +cpanm -n Acme::Chef + # ClojureScript npm install -g lumo-cljs