Files
cheatsheet-tldr/tldr/racket
2025-05-05 00:21:02 +00:00

30 lines
636 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# racket
> Racket language interpreter.
> More information: <https://docs.racket-lang.org/reference/running-sa.html#%28part._mz-cmdline%29>.
- Start a REPL (interactive shell):
`racket`
- Execute a Racket script:
`racket {{path/to/script.rkt}}`
- Execute a Racket expression:
`racket {{[-e|--eval]}} "{{expression}}"`
- Run module as a script (terminates option list):
`racket {{[-l|--lib]}} {{module_name}} {{[-m|--main]}} {{arguments}}`
- Start a REPL (interactive shell) for the `typed/racket` hashlang:
`racket -I typed/racket`