From 14d1090daa471d0e0bade121ca072d897b73500a Mon Sep 17 00:00:00 2001 From: Vrganj Date: Fri, 12 Mar 2021 20:18:43 +0100 Subject: [PATCH] Add lolcode --- config/languages.json | 6 ++++++ container/install_script.sh | 12 +++++++++++- lxc/executors/lolcode | 4 ++++ lxc/tests/lolcode.lol | 4 ++++ readme.md | 1 + 5 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 lxc/executors/lolcode create mode 100644 lxc/tests/lolcode.lol diff --git a/config/languages.json b/config/languages.json index f62ea5c..b8a54b2 100644 --- a/config/languages.json +++ b/config/languages.json @@ -136,6 +136,12 @@ "java" ] }, + { + "name": "lolcode", + "aliases": [ + "lolcode" + ] + }, { "name": "nim", "aliases": [ diff --git a/container/install_script.sh b/container/install_script.sh index c7cf270..593f7e1 100644 --- a/container/install_script.sh +++ b/container/install_script.sh @@ -284,7 +284,6 @@ MIX_ENV=prod mix escript.build --force echo 'export PATH=$PATH:/opt/05AB1E/05AB1E' >> /opt/.profile source /opt/.profile - # install prolog # final binary: /opt/swipl/swipl-/build/src/swipl cd /opt && mkdir swipl && cd swipl @@ -300,6 +299,17 @@ ninja echo "export PATH=\$PATH:/opt/swipl/$SUB_DIR/build/src" >> /opt/.profile source /opt/.profile +# install lolcode +# final binary: /opt/lolcode/bin/lci +cd /opt +git clone https://github.com/justinmeza/lci.git lolcode +cd lolcode +mkdir bin +cmake .. +make +echo 'export PATH=$PATH:/opt/lolcode/bin' >> /opt/.profile +source /opt/.profile + # create runnable users and apply limits for i in {1..150}; do useradd -M runner$i diff --git a/lxc/executors/lolcode b/lxc/executors/lolcode new file mode 100644 index 0000000..15e7473 --- /dev/null +++ b/lxc/executors/lolcode @@ -0,0 +1,4 @@ +#!/bin/bash + +cd /tmp/$1 +timeout -s KILL 3 lci code.code < stdin.stdin diff --git a/lxc/tests/lolcode.lol b/lxc/tests/lolcode.lol new file mode 100644 index 0000000..eac51ad --- /dev/null +++ b/lxc/tests/lolcode.lol @@ -0,0 +1,4 @@ +HAI 1.2 + CAN HAS STDIO? + VISIBLE "good" +KTHXBYE diff --git a/readme.md b/readme.md index ea4c0e9..d58b4e5 100644 --- a/readme.md +++ b/readme.md @@ -275,6 +275,7 @@ Content-Type: application/json `julia`, `kotlin`, `lisp`, +`lolcode`, `lua`, `nasm`, `nasm64`,