[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.5.1 The mosmllex lexer generator

To have `foo.sml' generated automatically from `foo.lex' using the lexer generator mosmllex, add the flag %MOSMLLEX to the `Dependencies' line for foo.

You must also make sure that the $(MOSMLLEX) variable is defined somewhere in the `Makefile' to unfold to the command used to run mosmllex.

foo will be compiled in structure mode (because that's what mosmllex generates; see section 2.3 Structure mode) and according to either the "simple" or "native" model (See section 2.2.1 The "simple" model, and 2.2.2 The "native" model) depending on whether `foo.sig' exists.

Note that `foo.sig' is not autogenerated, but it will be recognised if you write one by hand.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Henning Makholm on November, 19 2002 using texi2html