On parsers using Mosml ML


    The Moscow ML distribution contains tools lex and yacc like tools (called mosmllex and mosmlyacc) for the generation of lexers and parsers. These tools are documented in Moscow ML Owner's Manual, which is found on the Moscow ML homepage.

    Illustrative example are found in the following directory of the Moscow ML distribution: mosml/examples/lexyacc.

    The below files, which are revised extracts of files from the distribution, can be used for scanning and parsing the simple while-language, which has been introduced in the lecture:


    Last update: Octoberber 11, 2007, Michael R. Hansen