Add Kotlin

This commit is contained in:
1computer1 2019-03-15 20:53:44 -04:00
parent 6436d7daac
commit 5113f512b4
4 changed files with 19 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
- `kotlin` Kotlin (Kotlin 1.3)
- `lua` Lua (Lua 5.3)
- `pas` Pascal (FPC 3.0.4)
- `php` PHP (PHP 7.3.3)

4
docker/kotlin/Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM kotlin:jdk12-alpine
LABEL author="1Computer1"
COPY run.sh /var/run/

3
docker/kotlin/run.sh Normal file
View file

@ -0,0 +1,3 @@
echo "$1" > program.kt
kotlinc program.kt -include-runtime -d program.jar
java -jar program.jar

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

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