Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Commit 8c3b23c

Browse files
committed
Add support for Racket.
1 parent ba1f495 commit 8c3b23c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

languages/racket.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name = "racket"
2+
entrypoint = "main.rkt"
3+
extensions = [
4+
"rkt"
5+
]
6+
7+
packages = [
8+
]
9+
10+
setup = [
11+
"pushd /tmp",
12+
"wget -O racket-7.8-x86_64-linux.sh https://mirror.racket-lang.org/installers/7.8/racket-7.8-x86_64-linux.sh",
13+
"sh racket-7.8-x86_64-linux.sh --unix-style --create-dir --dest /usr",
14+
"rm -rf /tmp/racket-7.8-x86_64-linux.sh",
15+
"popd"
16+
]
17+
18+
versionCommand = [
19+
"racket",
20+
"--version"
21+
]
22+
23+
[run]
24+
command = [
25+
"racket",
26+
"main.rkt"
27+
]
28+
29+
[tests]
30+
[tests.eight]
31+
code = "#lang racket\n(+ 3 5)"
32+
output = "8\n"
33+
34+
[tests.hello]
35+
code = "#lang racket\n(print \"hello\")"
36+
output = "\"hello\""

0 commit comments

Comments
 (0)