Add APL
This commit is contained in:
parent
c00ec96018
commit
5c13901d44
4 changed files with 23 additions and 0 deletions
|
@ -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
4
docker/apl/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM juergensauermann/gnu-apl
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
6
docker/apl/run.sh
Normal file
6
docker/apl/run.sh
Normal 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
12
src/languages/apl.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const Language = require('../struct/Language');
|
||||
|
||||
class APL extends Language {
|
||||
constructor() {
|
||||
super('apl', {
|
||||
name: 'APL',
|
||||
aliases: ['apl']
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = APL;
|
Loading…
Reference in a new issue