Add Lua
This commit is contained in:
parent
30f39622e8
commit
27cb99d10a
4 changed files with 20 additions and 0 deletions
|
@ -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
|
- `e` prints the result of evaluating the code
|
||||||
- `julia` Julia (Julia 1.1.0)
|
- `julia` Julia (Julia 1.1.0)
|
||||||
- `e` prints the result of evaluating the code
|
- `e` prints the result of evaluating the code
|
||||||
|
- `lua` (Lua 5.3)
|
||||||
- `pas` Pascal (FPC 3.0.4)
|
- `pas` Pascal (FPC 3.0.4)
|
||||||
- `php` PHP (PHP 7.3.3)
|
- `php` PHP (PHP 7.3.3)
|
||||||
- `pl` Perl (Perl 5.28.1)
|
- `pl` Perl (Perl 5.28.1)
|
||||||
|
|
6
docker/lua/Dockerfile
Normal file
6
docker/lua/Dockerfile
Normal 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
2
docker/lua/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
echo "$1" > program.lua
|
||||||
|
lua5.3 program.lua
|
11
src/languages/lua.js
Normal file
11
src/languages/lua.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
const Language = require('../struct/Language');
|
||||||
|
|
||||||
|
class Lua extends Language {
|
||||||
|
constructor() {
|
||||||
|
super('lua', {
|
||||||
|
aliases: ['lua']
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Lua;
|
Loading…
Reference in a new issue