~ chicken-core (master) /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 r7rs-syntax83Disable the CHICKEN extensions to R7RS syntax.84.It Fl s Ar PATHNAME , Fl script Ar PATHNAME85Use interpreter for shell scripts.86.It Fl ss Ar PATHNAME87Run a script with a88.Sq main89procedure90.It Fl sx Ar PATHNAME91Same as92.Fl s ,93but print each expression as it is evaluated.94.It Fl setup-mode95Prefer the current directory when locating extensions.96.It Fl R Ar NAME , Fl require-extension Ar NAME97Import extension before executing code.98.It Fl I Ar PATHNAME , Fl include-path Ar PATHNAME99Add100.Ar PATHNAME101to the include path.102.It Fl -103Ignore all following options.104.El105.Sh ENVIRONMENT106The following environment variables change the behaviour of107.Nm Ns :108.Bl -tag -width CHICKEN_INCLUDE_PATH109.It Ev CSI_OPTIONS110When set to a string of command-line options, then the options are111passed implicitly to every direct or indirect invocation of112.Nm . Note that runtime options of the form113.Sq \&-: Ns Aq OPTIONS114cannot be passed using this method.115.It Ev CHICKEN_INCLUDE_PATH116Contains one or more pathnames where the interpreter should also look117for include files, separated by118.Sq \&;119characters.120.El121.Sh FILES122.Bl -tag -width 4n123.It Pa $XDG_CONFIG_HOME/chicken/csirc124Scheme file loaded on startup. (125.Ev $XDG_CONFIG_HOME126defaults to127.Pa $HOME/.config128)129.It Pa $HOME/.csirc130Scheme file loaded on startup if the previous one doesn’t exists.131.El132.Sh EXIT STATUS133.Ex -std134.Sh SEE ALSO135.Xr chicken 1 ,136.Xr csc 1137.Pp138More information can be found in the139.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".140.Sh AUTHORS141.An The CHICKEN Team142.Sh BUGS143Submit bug reports by e-mail to144.Mt chicken-janitors@nongnu.org