This commit is contained in:
1computer1 2019-05-25 15:03:40 -04:00
parent c00ec96018
commit 5c13901d44
4 changed files with 23 additions and 0 deletions

View file

@ -65,6 +65,7 @@ console.log(new Foo().bar);
One of the following language codes is set in `lang`.
Options are optionally set in `options`, which is a semicolon-delimited list of `flag` or `flag=value`.
- `apl` APL
- `bash` Bash
- `bf` Brainfuck
- `c` C (GCC)

4
docker/apl/Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM juergensauermann/gnu-apl
LABEL author="1Computer1"
COPY run.sh /var/run/

6
docker/apl/run.sh Normal file
View file

@ -0,0 +1,6 @@
mkdir "$CODEDIR" && cd "$CODEDIR"
echo "$1" > program.apl
apl --OFF -s -f program.apl
cd .. && rm -rf "$CODEDIR"

12
src/languages/apl.js Normal file
View file

@ -0,0 +1,12 @@
const Language = require('../struct/Language');
class APL extends Language {
constructor() {
super('apl', {
name: 'APL',
aliases: ['apl']
});
}
}
module.exports = APL;