The ML-LPT Library is a support library for the MLULex scanner generator and the MLAntlr parser generator. The ML-LPT Library is distributed with SML/NJ.

As of 20180119, MLton includes the ML-LPT Library synchronized with SML/NJ version 110.82.


  • You can import the ML-LPT Library into an MLB file with:

    MLB file Description


  • If you are porting a project from SML/NJ’s CompilationManager to MLton’s ML Basis system using cm2mlb, note that the following map is included by default:

    # MLLPT Library
    $                          $(SML_LIB)/mllpt-lib
    $            $(SML_LIB)/mllpt-lib/

    This will automatically convert a $/ import in an input .cm file into a $(SML_LIB)/mllpt-lib/ import in the output .mlb file.