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