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

Commit

Permalink
Add support for Racket.
Browse files Browse the repository at this point in the history
  • Loading branch information
mainland committed Aug 18, 2020
1 parent 9bfb4fd commit c56fa9b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions languages/racket.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name = "racket"
entrypoint = "main.rkt"
extensions = [
"rkt"
]

packages = [
]

setup = [
"pushd /tmp",
"wget -O racket-7.8-x86_64-linux.sh https://mirror.racket-lang.org/installers/7.8/racket-7.8-x86_64-linux.sh",
"sh racket-7.8-x86_64-linux.sh --unix-style --create-dir --dest /usr",
"rm -rf /tmp/racket-7.8-x86_64-linux.sh",
"popd"
]

versionCommand = [
"racket",
"--version"
]

[run]
command = [
"racket",
"main.rkt"
]

[tests]
[tests.eight]
code = "#lang racket\n(+ 3 5)"
output = "8\n"

[tests.hello]
code = "#lang racket\n(print \"hello\")"
output = "\"hello\""

0 comments on commit c56fa9b

Please sign in to comment.