Add lolcode

This commit is contained in:
Vrganj 2021-03-12 20:18:43 +01:00
parent f12cee3a96
commit 14d1090daa
5 changed files with 26 additions and 1 deletions

View File

@ -136,6 +136,12 @@
"java"
]
},
{
"name": "lolcode",
"aliases": [
"lolcode"
]
},
{
"name": "nim",
"aliases": [

View File

@ -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-<version>/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

4
lxc/executors/lolcode Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cd /tmp/$1
timeout -s KILL 3 lci code.code < stdin.stdin

4
lxc/tests/lolcode.lol Normal file
View File

@ -0,0 +1,4 @@
HAI 1.2
CAN HAS STDIO?
VISIBLE "good"
KTHXBYE

View File

@ -275,6 +275,7 @@ Content-Type: application/json
`julia`,
`kotlin`,
`lisp`,
`lolcode`,
`lua`,
`nasm`,
`nasm64`,