Debian Codegraph @

doc/guide/src/MLLPTLibrary.adoc

raw
1 = MLLPTLibrary
2
3 The
4 http://smlnj-gforge.cs.uchicago.edu/projects/ml-lpt/[ML-LPT Library]
5 is a support library for the <<MLULex#>> scanner generator and the
6 <<MLAntlr#>> parser generator. The ML-LPT Library is distributed with
7 SML/NJ.
8
9 As of 20250523, MLton includes the ML-LPT Library synchronized with
10 SML/NJ version 110.99.8.
11
12 == Usage
13
14 * You can import the ML-LPT Library into an MLB file with:
15 +
16 [options="header"]
17 |===
18 |MLB file|Description
19 |`$(SML_LIB)/mllpt-lib/mllpt-lib.mlb`|
20 |===
21
22 * If you are porting a project from SML/NJ's <<CompilationManager#>> to
23 MLton's <<MLBasis#,ML Basis system>> using `cm2mlb`, note that the
24 following map is included by default:
25 +
26 ----
27 # MLLPT Library
28 $ml-lpt-lib.cm $(SML_LIB)/mllpt-lib
29 $ml-lpt-lib.cm/ml-lpt-lib.cm $(SML_LIB)/mllpt-lib/mllpt-lib.mlb
30 ----
31 +
32 This will automatically convert a `$/mllpt-lib.cm` import in an input
33 `.cm` file into a `$(SML_LIB)/mllpt-lib/mllpt-lib.mlb` import in the
34 output `.mlb` file.
35
36 == Details
37
38 {empty}
39
40 == Patch
41
42 * https://github.com/MLton/mlton/blob/master/lib/mllpt-lib/ml-lpt.patch[`ml-lpt.patch`]