Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / localhost / MLLPTLibrary
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>MLLPTLibrary</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
9
10
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
13 /*<![CDATA[*/
14 asciidoc.install();
15 /*]]>*/
16 </script>
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
18 </head>
19 <body class="article">
20 <div id="banner">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
23 </div>
24 </div>
25 <div id="header">
26 <h1>MLLPTLibrary</h1>
27 </div>
28 <div id="content">
29 <div id="preamble">
30 <div class="sectionbody">
31 <div class="paragraph"><p>The
32 <a href="http://smlnj-gforge.cs.uchicago.edu/projects/ml-lpt/">ML-LPT Library</a>
33 is a support library for the <a href="MLULex">MLULex</a> scanner generator and the
34 <a href="MLAntlr">MLAntlr</a> parser generator. The ML-LPT Library is distributed with
35 SML/NJ.</p></div>
36 <div class="paragraph"><p>As of 20180119, MLton includes the ML-LPT Library synchronized with
37 SML/NJ version 110.82.</p></div>
38 </div>
39 </div>
40 <div class="sect1">
41 <h2 id="_usage">Usage</h2>
42 <div class="sectionbody">
43 <div class="ulist"><ul>
44 <li>
45 <p>
46 You can import the ML-LPT Library into an MLB file with:
47 </p>
48 <table class="tableblock frame-all grid-all"
49 style="
50 width:100%;
51 ">
52 <col style="width:50%;">
53 <col style="width:50%;">
54 <thead>
55 <tr>
56 <th class="tableblock halign-left valign-top" >MLB file</th>
57 <th class="tableblock halign-left valign-top" >Description</th>
58 </tr>
59 </thead>
60 <tbody>
61 <tr>
62 <td class="tableblock halign-left valign-top" ><p class="tableblock"><span class="monospaced">$(SML_LIB)/mllpt-lib/mllpt-lib.mlb</span></p></td>
63 <td class="tableblock halign-left valign-top" ><p class="tableblock"></p></td>
64 </tr>
65 </tbody>
66 </table>
67 </li>
68 <li>
69 <p>
70 If you are porting a project from SML/NJ&#8217;s <a href="CompilationManager">CompilationManager</a> to
71 MLton&#8217;s <a href="MLBasis"> ML Basis system</a> using <span class="monospaced">cm2mlb</span>, note that the
72 following map is included by default:
73 </p>
74 <div class="listingblock">
75 <div class="content monospaced">
76 <pre># MLLPT Library
77 $ml-lpt-lib.cm $(SML_LIB)/mllpt-lib
78 $ml-lpt-lib.cm/ml-lpt-lib.cm $(SML_LIB)/mllpt-lib/mllpt-lib.mlb</pre>
79 </div></div>
80 <div class="paragraph"><p>This will automatically convert a <span class="monospaced">$/mllpt-lib.cm</span> import in an input
81 <span class="monospaced">.cm</span> file into a <span class="monospaced">$(SML_LIB)/mllpt-lib/mllpt-lib.mlb</span> import in the
82 output <span class="monospaced">.mlb</span> file.</p></div>
83 </li>
84 </ul></div>
85 </div>
86 </div>
87 <div class="sect1">
88 <h2 id="_details">Details</h2>
89 <div class="sectionbody">
90 <div class="paragraph"><p></p></div>
91 </div>
92 </div>
93 <div class="sect1">
94 <h2 id="_patch">Patch</h2>
95 <div class="sectionbody">
96 <div class="ulist"><ul>
97 <li>
98 <p>
99 <a href="https://github.com/MLton/mlton/blob/master/lib/mllpt-lib/ml-lpt.patch"><span class="monospaced">ml-lpt.patch</span></a>
100 </p>
101 </li>
102 </ul></div>
103 </div>
104 </div>
105 </div>
106 <div id="footnotes"><hr></div>
107 <div id="footer">
108 <div id="footer-text">
109 </div>
110 <div id="footer-badges">
111 </div>
112 </div>
113 </body>
114 </html>