4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>ShowBasisDirective</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
26 <h1>ShowBasisDirective</h1>
30 <div class="sectionbody">
31 <div class="paragraph"><p>A comment of the form <span class="monospaced">(*#showBasis "<file>"*)</span> is recognized as a directive to
32 save the current basis (i.e., environment) to <span class="monospaced"><file></span> (in the same format as
33 the <span class="monospaced">-show-basis <file></span> <a href="CompileTimeOptions"> compile-time option</a>). The
34 <span class="monospaced"><file></span> is interpreted relative to the source file in which it appears. The
35 comment is lexed as a distinct token and is parsed as a structure-level
36 declaration. [Note that treating the directive as a top-level declaration would
37 prohibit using it inside a functor body, which would make the feature
38 significantly less useful in the context of the MLton compiler sources (with its
39 nearly fully functorial style).]</p></div>
40 <div class="paragraph"><p>This feature is meant to facilitate auto-completion via
41 <a href="https://github.com/MatthewFluet/company-mlton"><span class="monospaced">company-mlton</span></a> and similar
46 <div id="footnotes"><hr></div>
48 <div id="footer-text">
50 <div id="footer-badges">