Add Racket

This commit is contained in:
1computer1 2019-03-15 22:06:49 -04:00
parent 7106c3f5ac
commit 17e5eade08
4 changed files with 18 additions and 0 deletions

View file

@ -72,6 +72,7 @@ Options are optionally set in `options`, which is a semicolon-delimited list of
- `julia` Julia (Julia 1.1.0)
- `e` prints the result of evaluating the code
- `kotlin` Kotlin (Kotlin 1.3)
- `lisp` Racket (Racket 7.2)
- `lua` Lua (Lua 5.3)
- `ocaml` OCaml (OCaml 4.0.6)
- `pas` Pascal (FPC 3.0.4)

4
docker/racket/Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM jackfirth/racket
LABEL author="1Computer1"
COPY run.sh /var/run/

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

@ -0,0 +1,2 @@
echo "$1" > program.rkt
racket program.rkt

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

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