Up: LEGO System and documentation
Installing the LEGO machine
Pre-compiled versions of LEGO are available here for Solaris, SunOS 4.x and Linux. For
any other architecture, you will need to
-
uncompress and untar the SML sources
- adjust the paths accessing New Jersey SML modules
use "/home/njml/lib/smlnj-lib/lib-base-sig.sml";
use "/home/njml/lib/smlnj-lib/lib-base.sml";
use "/home/njml/lib/smlnj-lib/pathname-sig.sml";
use "/home/njml/lib/smlnj-lib/pathname.sml";
in the module build.sml
- create a shell variable ARCH and set it to the architecture
arch you
are using e.g., for Solaris (using a BASH shell), you would need to
specify export ARCH=sun4-51
- create a subdirectory with the same name arch
- Use New Jersey SML Version 0.93 and invoke use
"build.sml";
- Invoke make_lego true string;, where
string is any string you want to appear in the banner.
- Please make your compiled version available for other users;
notify <lego@dcs.ed.ac.uk>
- Install the LEGO library
- Install the Emacs interface
- and any other tools you fancy.
If you change the lexer (lego.lex) or the parser (lego.grm) you will
have to recreate lego.lex.sml, lego.grm.sig and
lego.grm.sml using sml-lex and sml-yacc.
Thomas Schreiber
<lego@dcs.ed.ac.uk>