Generated: December 5, 2003, 09:36:14 Copyright © 2003 , Kurt Nørmark The local LAML software home page

MzScheme LAML Compatibility

Kurt Nørmark © normark@cs.auc.dk Department of Computer Science Aalborg University Denmark

Source file: lib/compatibility/unix_solaris-7_mzscheme.scm
LAML Version 22.00 (December 4, 2003, alpha-4)

MzScheme specific stuff to be loaded for compatibility. This file implements each of the necessary non-R4RS functions mentioned in the root documentation of the LAML system. Notice that some of the non-standard Scheme functions used in LAML already happens to exist in MzScheme.

Notice that similar files exists for all other Scheme systems, platforms and operating systems on which LAML is running. The files are located in the directory lib/compatibility/.

Table of Contents:
1 . Definition of non-R4RS Scheme functions. 2 . LAML specific, context definition functions.

Alphabetic index:
current-time (current-time) Return the current time in seconds
fake-startup-parameters (fake-startup-parameters source-file startup-dir [program-parameter-list]) Fake the contextual startup parameters to a specific source file name and a specific startup directory.
laml-canonical-command-line (laml-canonical-command-line) Return the contextual command line information passed to LAML upon activation.
mail (mail receiver title contents . temp-dir) Mail sending support: Send an email to a receiver with title and contents.
make-directory-in-directory (make-directory-in-directory in-directory-path new-dir) Make a new directory, new-dir, in the directory path (first parameter).
sort-list (sort-list list com) Sort list using the comparison predicate, using MzScheme native sort function.

1 Definition of non-R4RS Scheme functions.
The functions in this section are general purpose functions which happen not to be in the Scheme standard (R4RS).

current-time
Form (current-time)
Description Return the current time in seconds

make-directory-in-directory
Form (make-directory-in-directory in-directory-path new-dir)
Description Make a new directory, new-dir, in the directory path (first parameter). The parameter in-directory-path ends in a slash.

mail
Form (mail receiver title contents . temp-dir)
Description Mail sending support: Send an email to a receiver with title and contents. The optional parameter temp-dir gives a temporary directory used for the mail sending; default is "temp/"

2 LAML specific, context definition functions.
The functions in this section return and define the activation context of the LAML processor.

laml-canonical-command-line
Form (laml-canonical-command-line)
Description Return the contextual command line information passed to LAML upon activation. Returns a list of lenght four or #f if no command line activation exists. The first element must be the symbol laml. Element number two must be the laml source file name (witout extension and initial path). Element number three must be a slash terminated directory, in the source file resides. Element number four must be a list of program parameters. This function must be redefined in scheme-system dependent compatibility file.

fake-startup-parameters
Form (fake-startup-parameters source-file startup-dir [program-parameter-list])
Description Fake the contextual startup parameters to a specific source file name and a specific startup directory. Both of the parameters must be strings, or the boolean value #f (in case the informations are unknown). Source-file must be a file name without initial path and without extension. start-dir must be an absolute path to a directory ending in a slash /. This function is useful for programmatic startup of LAML. This function must be redefined in scheme-system dependent compatibility file

sort-list
Form (sort-list list com)
Description Sort list using the comparison predicate, using MzScheme native sort function.

Generated: December 5, 2003, 09:36:14