SML# Document Version 4.1.0
Chapter 30 A parser generator smlyacc and smllex
A paper generator smlyacc and a lexer generator smllex are bundled with the SML# distribution. The original programs were developed by Andrew W. Appel and David R. Tarditi Jr., and distributed for the SML/NJ system. The license and documents are found in src/ml-yacc/COPYRIGHT and src/ml-yacc/doc/mlyacc.pdf. They are ported to the SML# separate compile system. The readers are referred to the src/ml-yacc/doc/mlyacc.pdf for for source file syntax, including smlyacc grammar rules and smllex regular expressions.
This document describes how to run the programs and and to use the generated parser and lexer in SML#.