-
Notifications
You must be signed in to change notification settings - Fork 0
/
csi.mdoc
146 lines (146 loc) · 4.63 KB
/
csi.mdoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
.\" Copyright (c) 2007-2021, The CHICKEN Team
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. The name of the authors may not be used to endorse or promote products
.\" derived from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
.Dd Apr 26, 2017
.Dt CSI 1
.Os
.Sh NAME
.Nm csi
.Nd The CHICKEN Scheme interpreter
.Sh SYNOPSIS
.Nm
.Op Ar OPTION ...
.Op Ar FILENAME ...
.Sh DESCRIPTION
.Nm
is an interpreter for the programming language Scheme supporting most of
the features as described in the Revised^5 Report on the Algorithmic
Language Scheme.
.Nm
is implemented as a program compiled with the CHICKEN compiler.
.Pp
.Ar FILENAME
is a Scheme source file name with optional extension.
.Ar OPTION
may be one of the following:
.Bl -tag -width Ds
.It Fl h , Fl help
Display usage and exit.
.It Fl version
Display version and exit.
.It Fl release
Print release number and exit.
.It Fl i , Fl case-insensitive
Enable case-insensitive reading.
.It Fl e Ar EXPRESSION , Fl eval Ar EXPRESSION
Evaluate the given expression.
.It Fl p Ar EXPRESSION , Fl print Ar EXPRESSION
Evaluate and print the result(s) of the given expression.
.It Fl P Ar EXPRESSION , Fl pretty-print Ar EXPRESSION
Evaluate and print result(s) prettily.
.It Fl D Ar SYMBOL , Fl feature Ar SYMBOL
Register feature identifier.
.It Fl no-feature Ar SYMBOL
Disable built-in feature identifier.
.It Fl q , Fl quiet
Do not print banner.
.It Fl n , Fl no-init
Do not load initialization file.
.Sq .csirc
.It Fl b , Fl batch
Terminate after command-line processing.
.It Fl w , Fl no-warnings
Disable all warnings.
.It Fl K Ar STYLE , Fl keyword-style Ar STYLE
Enable alternative keyword-syntax
.Po prefix, suffix or none Pc
.It Fl no-parentheses-synonyms
Disable list delimiter synonyms.
.It Fl no-symbol-escape
Disables support for escaped symbols.
.It Fl r5rs-syntax
Disable the CHICKEN extensions to R5RS syntax.
.It Fl s Ar PATHNAME , Fl script Ar PATHNAME
Use interpreter for shell scripts.
.It Fl ss Ar PATHNAME
Run a script with a
.Sq main
procedure
.It Fl sx Ar PATHNAME
Same as
.Fl s ,
but print each expression as it is evaluated.
.It Fl setup-mode
Prefer the current directory when locating extensions.
.It Fl R Ar NAME , Fl require-extension Ar NAME
Import extension before executing code.
.It Fl I Ar PATHNAME , Fl include-path Ar PATHNAME
Add
.Ar PATHNAME
to the include path.
.It Fl -
Ignore all following options.
.El
.Sh ENVIRONMENT
The following environment variables change the behaviour of
.Nm Ns :
.Bl -tag -width CHICKEN_INCLUDE_PATH
.It Ev CSI_OPTIONS
When set to a string of command-line options, then the options are
passed implicitly to every direct or indirect invocation of
.Nm . Note that runtime options of the form
.Sq \&-: Ns Aq OPTIONS
cannot be passed using this method.
.It Ev CHICKEN_INCLUDE_PATH
Contains one or more pathnames where the interpreter should also look
for include files, separated by
.Sq \&;
characters.
.El
.Sh FILES
.Bl -tag -width 4n
.It Pa $XDG_CONFIG_HOME/chicken/csirc
Scheme file loaded on startup. (
.Ev $XDG_CONFIG_HOME
defaults to
.Pa $HOME/.config
)
.It Pa $HOME/.csirc
Scheme file loaded on startup if the previous one doesn’t exists.
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr chicken 1 ,
.Xr csc 1
.Pp
More information can be found in the
.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".
.Sh AUTHORS
.An The CHICKEN Team
.Sh BUGS
Submit bug reports by e-mail to
.Mt chicken-janitors@nongnu.org