mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
Add lolcode
This commit is contained in:
parent
f12cee3a96
commit
14d1090daa
5 changed files with 26 additions and 1 deletions
|
@ -136,6 +136,12 @@
|
||||||
"java"
|
"java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "lolcode",
|
||||||
|
"aliases": [
|
||||||
|
"lolcode"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "nim",
|
"name": "nim",
|
||||||
"aliases": [
|
"aliases": [
|
||||||
|
|
|
@ -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
4
lxc/executors/lolcode
Normal 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
4
lxc/tests/lolcode.lol
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
HAI 1.2
|
||||||
|
CAN HAS STDIO?
|
||||||
|
VISIBLE "good"
|
||||||
|
KTHXBYE
|
|
@ -275,6 +275,7 @@ Content-Type: application/json
|
||||||
`julia`,
|
`julia`,
|
||||||
`kotlin`,
|
`kotlin`,
|
||||||
`lisp`,
|
`lisp`,
|
||||||
|
`lolcode`,
|
||||||
`lua`,
|
`lua`,
|
||||||
`nasm`,
|
`nasm`,
|
||||||
`nasm64`,
|
`nasm64`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue