| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Gauche can be used either as an independent Scheme interpreter
or as an embedded Scheme library. The interpreter
which comes with Gauche distribution is a program named gosh.
gosh works
interactively, i.e. it reads a Scheme expression from the standard input,
evaluates it, and prints the result, and repeat that until it reads EOF or
is terminated.
If gosh is invoked without scheme-file, but the input
is not a terminal, it enters read-eval-print loop but not writes
out a prompt while waiting input form. This is useful when you
pipe Scheme program into gosh. You can force this behavior
or suppress this behavior by -b and -i options.
If scheme-file is specified, gosh runs it as a
Scheme program and exit.
See section 3.4 Writing Scheme scripts, for details.
The following command line options are recognized by gosh.
The first command line argument which doesn't begin with `-'
is recognized as the script file. If you want to specify a file
that begins with a minus sign, use a dummy option `--'.
gosh not to load the default initialization file.
gosh version and exits.
use).
You can specify this option more than once to use multiple modules.
load (See section 6.19.1 Loading Scheme file).
You can specify this option more than once to load multiple files.
% gosh -umath.const -E"print (sin (* pi/180 15))" -Eexit 0.25881904510252074 |
--
gosh sees this option, it stops processing the options
and takes next command line argument as a script file. It is useful
in case if you have a script file that begins with a minus sign,
although it is not generally recommended.
The options -I, -A, -l, -u, -e and -E are processes in the order of appearance. For example, adding a load path by -I affects the -l and -u option after it but not before it.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |