Merge pull request #139 from Vrganj/add-lolcode

Add lolcode
This commit is contained in:
Brian Seymour 2021-03-12 13:24:57 -06:00 committed by GitHub
commit fca3488743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 1 deletions

View File

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

View File

@ -284,7 +284,6 @@ MIX_ENV=prod mix escript.build --force
echo 'export PATH=$PATH:/opt/05AB1E/05AB1E' >> /opt/.profile echo 'export PATH=$PATH:/opt/05AB1E/05AB1E' >> /opt/.profile
source /opt/.profile source /opt/.profile
# install prolog # install prolog
# final binary: /opt/swipl/swipl-<version>/build/src/swipl # final binary: /opt/swipl/swipl-<version>/build/src/swipl
cd /opt && mkdir swipl && cd swipl cd /opt && mkdir swipl && cd swipl
@ -300,6 +299,17 @@ ninja
echo "export PATH=\$PATH:/opt/swipl/$SUB_DIR/build/src" >> /opt/.profile echo "export PATH=\$PATH:/opt/swipl/$SUB_DIR/build/src" >> /opt/.profile
source /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 # create runnable users and apply limits
for i in {1..150}; do for i in {1..150}; do
useradd -M runner$i 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`, `julia`,
`kotlin`, `kotlin`,
`lisp`, `lisp`,
`lolcode`,
`lua`, `lua`,
`nasm`, `nasm`,
`nasm64`, `nasm64`,