This commit is contained in:
1computer1 2019-03-15 20:32:30 -04:00
parent 30f39622e8
commit 27cb99d10a
4 changed files with 20 additions and 0 deletions

View file

@ -71,6 +71,7 @@ Options are optionally set in `options`, which is a semicolon-delimited list of
- `e` prints the result of evaluating the code
- `julia` Julia (Julia 1.1.0)
- `e` prints the result of evaluating the code
- `lua` (Lua 5.3)
- `pas` Pascal (FPC 3.0.4)
- `php` PHP (PHP 7.3.3)
- `pl` Perl (Perl 5.28.1)

6
docker/lua/Dockerfile Normal file
View file

@ -0,0 +1,6 @@
FROM alpine
RUN apk update
RUN apk add lua5.3
COPY run.sh /var/run/

2
docker/lua/run.sh Normal file
View file

@ -0,0 +1,2 @@
echo "$1" > program.lua
lua5.3 program.lua

11
src/languages/lua.js Normal file
View file

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