Linux command
scheme 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start REPL
scheme
Run file
scheme [file.scm]
Evaluate expression
scheme -e "[(+ 1 2)]"
Load file then REPL
scheme -l [file.scm]
Quiet mode
scheme -q
说明
scheme is an interpreter for the Scheme programming language, a minimalist dialect of Lisp emphasizing functional programming, lexical scoping, and first-class procedures. It provides both an interactive REPL for experimentation and the ability to run Scheme source files directly. Scheme's design follows the R5RS and R7RS language standards, providing a small but powerful core with features like proper tail recursion, continuations, and hygienic macros. The interactive REPL allows evaluating expressions immediately, making it well-suited for learning, prototyping, and exploring algorithms. The scheme command may refer to different implementations depending on the system, including MIT/GNU Scheme, Chez Scheme, or GNU Guile. Each implementation offers its own extensions beyond the standard, so behavior and available libraries may vary.
参数
- -e _EXPR_
- Evaluate expression.
- -l _FILE_
- Load file.
- -q
- Quiet startup.
- --help
- Show help.
- --version
- Show version.
FAQ
What is the scheme command used for?
scheme is an interpreter for the Scheme programming language, a minimalist dialect of Lisp emphasizing functional programming, lexical scoping, and first-class procedures. It provides both an interactive REPL for experimentation and the ability to run Scheme source files directly. Scheme's design follows the R5RS and R7RS language standards, providing a small but powerful core with features like proper tail recursion, continuations, and hygienic macros. The interactive REPL allows evaluating expressions immediately, making it well-suited for learning, prototyping, and exploring algorithms. The scheme command may refer to different implementations depending on the system, including MIT/GNU Scheme, Chez Scheme, or GNU Guile. Each implementation offers its own extensions beyond the standard, so behavior and available libraries may vary.
How do I run a basic scheme example?
Run `scheme` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e _EXPR_ do in scheme?
Evaluate expression.