返回命令列表

Linux command

rlisp 命令

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

Start an interactive RLISP session

rlisp

Load and execute an RLISP source file

rlisp < [program.red]

Use a custom heap size (in megabytes)

rlisp -K [256]

Suppress banner and garbage-collector chatter

rlisp -q

Set a Lisp variable from the command line

rlisp -D [name]=[value]

说明

RLISP is an ALGOL-like surface syntax for Standard Lisp, used internally by the REDUCE computer algebra system. It provides Lisp semantics — symbolic expressions, lists, atoms, recursion — but with a more readable infix and keyword syntax (begin/end, if/then/else, for, while) instead of S-expressions. When invoked, rlisp starts an interactive read-eval-print loop. Statements are terminated by a semicolon (;) for normal output, or by a dollar sign ($) to suppress the printed result. From inside REDUCE you can switch to RLISP/symbolic mode with symbolic; and back with algebraic;. The binary is part of REDUCE and is normally built on top of either CSL (Codemist Standard Lisp) or PSL (Portable Standard Lisp); the available command-line options reflect the underlying Lisp engine.

参数

--help
Show help text and exit.
--version
Show version information.
-v
Print extended startup banner; verbose mode.
-q
Quiet mode: suppress echo and garbage-collector messages.
-w
Force console (non-windowed) operation.
--nogui
Force a console-style application.
-K _nnn_
Set heap size in megabytes; the heap will not grow beyond _nnn_.
-K _nnn_/_ss_
Set heap size and Lisp stack pages.
-i _file_
Add a read-only image file to the search path.
-o _file_
Set the output image file used by faslout.
-D _name_=_value_
Pre-bind a Lisp variable from the command line.
-l _file_
Redirect standard output to _file_.
-r _n_,_m_
Seed the random number generator for reproducible runs.
-z
Bootstrap mode: start without an image file.

FAQ

What is the rlisp command used for?

RLISP is an ALGOL-like surface syntax for Standard Lisp, used internally by the REDUCE computer algebra system. It provides Lisp semantics — symbolic expressions, lists, atoms, recursion — but with a more readable infix and keyword syntax (begin/end, if/then/else, for, while) instead of S-expressions. When invoked, rlisp starts an interactive read-eval-print loop. Statements are terminated by a semicolon (;) for normal output, or by a dollar sign ($) to suppress the printed result. From inside REDUCE you can switch to RLISP/symbolic mode with symbolic; and back with algebraic;. The binary is part of REDUCE and is normally built on top of either CSL (Codemist Standard Lisp) or PSL (Portable Standard Lisp); the available command-line options reflect the underlying Lisp engine.

How do I run a basic rlisp example?

Run `rlisp` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --help do in rlisp?

Show help text and exit.