Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / localhost / ManualPage
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>ManualPage</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>ManualPage</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>MLton is run from the command line with a collection of options\r
32followed by a file name and a list of files to compile, assemble, and\r
33link with.</p></div>\r
34<div class="listingblock">\r
35<div class="content monospaced">\r
36<pre>mlton [option ...] file.{c|mlb|o|sml} [file.{c|o|s|S} ...]</pre>\r
37</div></div>\r
38<div class="paragraph"><p>The simplest case is to run <span class="monospaced">mlton foo.sml</span>, where <span class="monospaced">foo.sml</span> contains\r
39a valid SML program, in which case MLton compiles the program to\r
40produce an executable <span class="monospaced">foo</span>. Since MLton does not support separate\r
41compilation, the program must be the entire program you wish to\r
42compile. However, the program may refer to signatures and structures\r
43defined in the <a href="BasisLibrary">Basis Library</a>.</p></div>\r
44<div class="paragraph"><p>Larger programs, spanning many files, can be compiled with the\r
45<a href="MLBasis">ML Basis system</a>. In this case, <span class="monospaced">mlton foo.mlb</span> will\r
46compile the complete SML program described by the basis <span class="monospaced">foo.mlb</span>,\r
47which may specify both SML files and additional bases.</p></div>\r
48</div>\r
49</div>\r
50<div class="sect1">\r
51<h2 id="_next_steps">Next Steps</h2>\r
52<div class="sectionbody">\r
53<div class="ulist"><ul>\r
54<li>\r
55<p>\r
56<a href="CompileTimeOptions">CompileTimeOptions</a>\r
57</p>\r
58</li>\r
59<li>\r
60<p>\r
61<a href="RunTimeOptions">RunTimeOptions</a>\r
62</p>\r
63</li>\r
64</ul></div>\r
65</div>\r
66</div>\r
67</div>\r
68<div id="footnotes"><hr></div>\r
69<div id="footer">\r
70<div id="footer-text">\r
71</div>\r
72<div id="footer-badges">\r
73</div>\r
74</div>\r
75</body>\r
76</html>\r