Next: Invoking mescc, Previous: The Mes Bootstrap Process, Up: Bootstrapping [Contents][Index]
The mes command is the Scheme interpreter whose prime
directive is to run the MesCC program.
For convenience and testing purposes, mes tries to mimic
guile.
mes option… FILE…
The options can be among the following:
-s script arg… ¶ By default, mes will read a file named on the command line as a script.
Any command-line arguments arg… following script
become the script’s arguments; the command-line function returns
a list of strings of the form (script arg…).
Scripts are read and evaluated as Scheme source code just as the
load function would. After loading script, mes exits.
-c expr arg… ¶ Evaluate expr as Scheme code, and then exit. Any command-line
arguments arg…) following expr become command-line
arguments; the command-line function returns a list of strings of
the form (guile arg…), where mes is the
path of the mes executable.
-- arg…Run interactively, prompting the user for expressions and evaluating
them. Any command-line arguments arg… following the
-- become command-line arguments for the interactive session;
the command-line function returns a list of strings of the form
(guile arg…), where mes is the path of the
mes executable.
-L,--load-path=directoryAdd directory to the front of Mes module load path. The given
directories are searched in the order given on the command line and
before any directories in the GUILE_LOAD_PATH environment
variable.
-C,--compiled-path=directoryAccepted and ignored for Guile compatibility.
-l fileLoad Scheme source code from file, and continue processing the command line.
-e,--main=functionMake function the entry point of the script. After loading
the script file (with -s) or evaluating the expression (with
-c), apply function to a list containing the program name
and the command-line arguments—the list provided by the
command-line function.
-h, --helpDisplay help on invoking mes, and then exit.
-v, --versionDisplay the current version of mes%, and then exit.
Next: Invoking mescc, Previous: The Mes Bootstrap Process, Up: Bootstrapping [Contents][Index]