Add Kotlin
This commit is contained in:
parent
6436d7daac
commit
5113f512b4
4 changed files with 19 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
|
||||
- `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
4
docker/kotlin/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM kotlin:jdk12-alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
3
docker/kotlin/run.sh
Normal file
3
docker/kotlin/run.sh
Normal 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
11
src/languages/kotlin.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const Language = require('../struct/Language');
|
||||
|
||||
class Kotlin extends Language {
|
||||
constructor() {
|
||||
super('kotlin', {
|
||||
aliases: ['kotlin']
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Kotlin;
|
Loading…
Reference in a new issue