Lexer generator for use with standard ml and mlton
mllex foo.lex
mllex takes as input a lexer specification foo.lex and produces as output in foo.lex.sml a lexer written in SML.
For details on the lexer specification, see A Lexical Analyzer Generator for Standard ML, which is in /usr/share/doc/mllex.pdf.