diff --git a/README.md b/README.md index 692c5b0..ca1a273 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/docker/apl/Dockerfile b/docker/apl/Dockerfile new file mode 100644 index 0000000..e756f61 --- /dev/null +++ b/docker/apl/Dockerfile @@ -0,0 +1,4 @@ +FROM juergensauermann/gnu-apl +LABEL author="1Computer1" + +COPY run.sh /var/run/ diff --git a/docker/apl/run.sh b/docker/apl/run.sh new file mode 100644 index 0000000..48a9362 --- /dev/null +++ b/docker/apl/run.sh @@ -0,0 +1,6 @@ +mkdir "$CODEDIR" && cd "$CODEDIR" + +echo "$1" > program.apl +apl --OFF -s -f program.apl + +cd .. && rm -rf "$CODEDIR" diff --git a/src/languages/apl.js b/src/languages/apl.js new file mode 100644 index 0000000..680bc49 --- /dev/null +++ b/src/languages/apl.js @@ -0,0 +1,12 @@ +const Language = require('../struct/Language'); + +class APL extends Language { + constructor() { + super('apl', { + name: 'APL', + aliases: ['apl'] + }); + } +} + +module.exports = APL;