Manual improvements suggested by Alan Watson.

This commit is contained in:
Alex Shinn 2014-07-20 09:58:31 +09:00
parent 52de854b25
commit c5fccbd0ae

View file

@ -72,8 +72,9 @@ program. Signals aren't caught either - to enable handling keyboard
interrupts you can use the (chibi process) module. For a more interrupts you can use the (chibi process) module. For a more
sophisticated REPL with readline support, signal handling, module sophisticated REPL with readline support, signal handling, module
management and smarter read/write you may want to use the (chibi repl) management and smarter read/write you may want to use the (chibi repl)
module. For example, module. This can be launched automatically with:
.I chibi-scheme -mchibi.repl -e'(repl)' .I chibi-scheme -R
\[char46]
The default language the R7RS The default language the R7RS
(scheme base) module. To get a mostly R5RS-compatible language, use (scheme base) module. To get a mostly R5RS-compatible language, use
@ -82,11 +83,30 @@ or to get just the core language used for bootstrapping, use
.I chibi-scheme -xchibi .I chibi-scheme -xchibi
or its shortcut or its shortcut
.I chibi-scheme -q .I chibi-scheme -q
\[char46]
.SH OPTIONS .SH OPTIONS
Space is optional between options and their arguments. Space is optional between options and their arguments, with the
Options without arguments may not be chained together. exception of
.I
-R
for which the argument is optional, and therefore if present must
occur without a space. Options without arguments may not be chained
together.
To reduce the need for shell escapes, options with module arguments
(
.I -m
,
.I -x
and
.I -R
) are written in a dot notation, so that the module
.I (foo bar)
is written as
.I foo.bar
\[char46]
.TP 5 .TP 5
.BI -V .BI -V
@ -114,6 +134,10 @@ Loads the given module and runs the "main" procedure it defines (which
need not be exported) with a single argument of the list of command-line need not be exported) with a single argument of the list of command-line
arguments as in SRFI-22. The name "main" can be overridden with the -r arguments as in SRFI-22. The name "main" can be overridden with the -r
option. option.
.I [module]
may be omitted, in which case it default to chibi.repl. Thus
.I chibi-scheme -R
is the recommended means to obtain the advanced REPL.
.TP .TP
.BI -s .BI -s
Strict mode, escalating warnings to fatal errors. Strict mode, escalating warnings to fatal errors.
@ -149,11 +173,7 @@ Imports
.I module .I module
as though "(import as though "(import
.I module .I module
)" were evaluated. However, to reduce the need for shell )" were evaluated.
escapes, modules are written in a dot notation, so that the module
.I (foo bar)
is written as
.I foo.bar
If the If the
.BI -x .BI -x
version is used, then version is used, then