~ chicken-core (chicken-5) /csi.mdoc
Trap1.\" Copyright (c) 2007-2022, The CHICKEN Team2.\" All rights reserved.3.\"4.\" Redistribution and use in source and binary forms, with or without5.\" modification, are permitted provided that the following conditions6.\" are met:7.\" 1. Redistributions of source code must retain the above copyright8.\" notice, this list of conditions and the following disclaimer.9.\" 2. Redistributions in binary form must reproduce the above copyright10.\" notice, this list of conditions and the following disclaimer in the11.\" documentation and/or other materials provided with the distribution.12.\" 3. The name of the authors may not be used to endorse or promote products13.\" derived from this software without specific prior written permission.14.\"15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.18.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.25.\"26.\"27.Dd Apr 26, 201728.Dt CSI 129.Os30.Sh NAME31.Nm csi32.Nd The CHICKEN Scheme interpreter33.Sh SYNOPSIS34.Nm35.Op Ar OPTION ...36.Op Ar FILENAME ...37.Sh DESCRIPTION38.Nm39is an interpreter for the programming language Scheme supporting most of40the features as described in the Revised^5 Report on the Algorithmic41Language Scheme.42.Nm43is implemented as a program compiled with the CHICKEN compiler.44.Pp45.Ar FILENAME46is a Scheme source file name with optional extension.47.Ar OPTION48may be one of the following:49.Bl -tag -width Ds50.It Fl h , Fl help51Display usage and exit.52.It Fl version53Display version and exit.54.It Fl release55Print release number and exit.56.It Fl i , Fl case-insensitive57Enable case-insensitive reading.58.It Fl e Ar EXPRESSION , Fl eval Ar EXPRESSION59Evaluate the given expression.60.It Fl p Ar EXPRESSION , Fl print Ar EXPRESSION61Evaluate and print the result(s) of the given expression.62.It Fl P Ar EXPRESSION , Fl pretty-print Ar EXPRESSION63Evaluate and print result(s) prettily.64.It Fl D Ar SYMBOL , Fl feature Ar SYMBOL65Register feature identifier.66.It Fl no-feature Ar SYMBOL67Disable built-in feature identifier.68.It Fl q , Fl quiet69Do not print banner.70.It Fl n , Fl no-init71Do not load initialization file.72.Sq .csirc73.It Fl b , Fl batch74Terminate after command-line processing.75.It Fl w , Fl no-warnings76Disable all warnings.77.It Fl K Ar STYLE , Fl keyword-style Ar STYLE78Enable alternative keyword-syntax79.Po prefix, suffix or none Pc80.It Fl no-parentheses-synonyms81Disable list delimiter synonyms.82.It Fl no-symbol-escape83Disables support for escaped symbols.84.It Fl r5rs-syntax85Disable the CHICKEN extensions to R5RS syntax.86.It Fl s Ar PATHNAME , Fl script Ar PATHNAME87Use interpreter for shell scripts.88.It Fl ss Ar PATHNAME89Run a script with a90.Sq main91procedure92.It Fl sx Ar PATHNAME93Same as94.Fl s ,95but print each expression as it is evaluated.96.It Fl setup-mode97Prefer the current directory when locating extensions.98.It Fl R Ar NAME , Fl require-extension Ar NAME99Import extension before executing code.100.It Fl I Ar PATHNAME , Fl include-path Ar PATHNAME101Add102.Ar PATHNAME103to the include path.104.It Fl -105Ignore all following options.106.El107.Sh ENVIRONMENT108The following environment variables change the behaviour of109.Nm Ns :110.Bl -tag -width CHICKEN_INCLUDE_PATH111.It Ev CSI_OPTIONS112When set to a string of command-line options, then the options are113passed implicitly to every direct or indirect invocation of114.Nm . Note that runtime options of the form115.Sq \&-: Ns Aq OPTIONS116cannot be passed using this method.117.It Ev CHICKEN_INCLUDE_PATH118Contains one or more pathnames where the interpreter should also look119for include files, separated by120.Sq \&;121characters.122.El123.Sh FILES124.Bl -tag -width 4n125.It Pa $XDG_CONFIG_HOME/chicken/csirc126Scheme file loaded on startup. (127.Ev $XDG_CONFIG_HOME128defaults to129.Pa $HOME/.config130)131.It Pa $HOME/.csirc132Scheme file loaded on startup if the previous one doesn’t exists.133.El134.Sh EXIT STATUS135.Ex -std136.Sh SEE ALSO137.Xr chicken 1 ,138.Xr csc 1139.Pp140More information can be found in the141.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".142.Sh AUTHORS143.An The CHICKEN Team144.Sh BUGS145Submit bug reports by e-mail to146.Mt chicken-janitors@nongnu.org