Generated: June 8, 2001, 08:50:13 | Copyright © 2000, Kurt Nørmark |  |
Porting LAML to another Scheme System
From version 13, the LAML system has been prepared to be ported to another Scheme system than mzScheme on the Windows platform
and SCM on Unix. I have isolated the parts of LAML that depend on a particular Scheme System in well-defined files.
Also the platform dependent aspects have been isolated. Below you will find a list with advice on how to port
LAML.- Register the platform and/or the Scheme system in the LAML configuration descriptions
- Define non-standard Scheme functions
- Define the laml command file
- If you want to initiate LAML from a command prompt, you must make
an appropriate command file (shell script) in laml-config/exec-stuff/.
The name of the file must be
- <laml-platform>_<operating-system>_<scheme-system>_laml
Take a look at the existing laml files in laml-config/exec-stuff/
to get inspiration, such as the unix laml shell scrip.The strings enclosed in @...@ delimiters are automatically substituted by appropriate strings
during the LAML configuration process. The configuration process will copy your command file
to the bin directory of the LAML distribution.
- Define the LAML Emacs Lisp execution functions
- If you want to initiate LAML processing from emacs you must define
three emacs lisp functions in a file in the directory laml-config/emacs-stuff/.
The name of the file must be
- <laml-platform>_<operating-system>_<scheme-system>_laml-execute.el.
The functions to define are laml-process-current-buffer, laml-process-buffer,
and laml-sync-process-current-buffer. See the existing
laml-execute.el files to get inspiration and information, such as laml-config/emacs-stuff/unix_solaris-6_scm_laml-execute.el. The LAML configuration process will copy your Emacs Lisp file to the emacs-support directory of the
LAML distribution.
- In case you want to use Scheme for CGI programming purposes
- The CGI library requires that the function (getenv <environment-variable>) returns the value of
<environment-variable> (a string).
- In addition, the CGI programs developed locally at the Computer Science Department requires that all the required functions mentioned in
the LAML index files are defined, including make-directory-in-directory and mail. But this is, of course, not a general requirement
for using Scheme in CGI programs.
When you are done, try configure LAML, and try out the examples.
If you manage to port LAML to a new platform, operating system or Scheme system, I would like to receive the following
from you in order to extend future LAML distributions with your contributions:- A zipped version of the laml-config directory
- A zipped version of the lib4/compatibility directory
please email these directories to me, see email address below.
Kurt Nørmark
Aalborg University
normark@cs.auc.dk
Generated: June 8, 2001, 08:50:13