(* The files for the simple WHILE language can be compiled in the following way: mrh 10/10 2007 *) [mrh]$ mosmlc -c Absyn.sml produces two compiled units (Absyn.ui Absyn.uo) [mrh]$ mosmllex WHILElex.lex produce the file WHILElex.sml, i.e. the code for the lexer [mrh]$ mosmlyac -v WHILEpar.grm produces WHILEpar.output - messages from the parser, including conflicts WHILEpar.sig - signature for the parser WHILEpar.sml - code for the parser [mrh]$ mosmlc -c -liberal WHILEpar.sig WHILEpar.sml produces two compiled units (WHILEpar.ui WHILEpar.uo) for the parser [mrh]$ mosmlc -c WHILElex.sml produces two compiled units (WHILEpar.ui WHILEpar.uo) for the lexer [mrh]$ mosml parse.sml loads the modules for Absyn, the lexer and the parser --- use it together with Interpreter.sml