| ||Copyright © 2011 , Kurt NÝrmark |
Reference Manual of the MzScheme LAML compatibility libray.
Department of Computer Science, Aalborg University, Denmark.
LAML Source file: lib/compatibility/star_star_mzscheme-200.scm
MzScheme specific stuff to be loaded for compatibility. This file implements each of the necessary non-R5RS 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. These are file-exists?, delete-file, copy-file, and directory-exists? Therefore, these functions need not to be provided in this compatibility library.
1 Definition of non-R5RS Scheme functions.
| The functions in this section are general purpose functions which happen not to be in the Scheme standard (R5RS). |
|Description ||Return the current time in seconds |
|See also ||Scheme source file ||current-time|
|Form ||(sort-list list com)|
|Description ||Sort list using the comparison predicate |
|See also ||Scheme source file ||sort-list|
|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. |
|See also ||Scheme source file ||make-directory-in-directory|
|Form ||(mail receiver title contents)|
|Description ||Mail sending support: Send an email to a receiver. Not implemented on mzscheme on the PC platform. |
|See also ||Scheme source file ||mail|
|Form ||(bound? symbol)|
|Description ||Is symbol bound in the current interaction environment. |
|See also ||Scheme source file ||bound?|
|Form ||(eval-cur-env e)|
|Description ||Eval the expression e in the current interaction environment. |
|See also ||Scheme source file ||eval-cur-env|
|Form ||(url-target-exists? url-string)|
|Description ||Return whether the target of the url, as represented by url-string, exits. Notice that this version of url-target-exists? is rather expensive, because it actually transfers the document over the network. It also requires the LAML library url-read.scm, which is not part of the standard LAML distribution. |
|See also ||Scheme source file ||url-target-exists?|
2 LAML specific, context definition functions.
| The functions in this section return and define the activation context of the LAML processor.|
|Description ||Return the contextual command line information passed to LAML upon activation. Returns a list of length four or #f if no command line activation exists. The first element must be the symbol laml (a tag). Element number two must be the laml source file name (without extension and initial path). Element number three must be a slash terminated, full directory path (with forward slashes), in which the source file resides. Element number four must be a list of program parameters. This function must be redefined in Scheme-system/OS/platform dependent compatibility file. |
|See also ||Scheme source file ||laml-canonical-command-line|
|Form ||(fake-startup-parameters source-file startup-dir . program-parameters)|
|Description ||Fake the contextual startup parameters to a specific source file name and a specific startup directory. source-file and startup-dir 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 /. program-parameters are strings. Notice the correct calling form of this function is (fake-startup-parameters "source" "dir" "p1" "p2" "p3") The following calling form is wrong: (fake-startup-parameters "source" "dir" ("p1" "p2" "p3")). This function is used for programmatic startup of LAML. This function must be redefined in scheme-system dependent compatibility file |
|See also ||Scheme source file ||fake-startup-parameters|