4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>FrontEnd</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>
30 <div class="sectionbody">
31 <div class="paragraph"><p><a href="FrontEnd">FrontEnd</a> is a translation pass from source to the <a href="AST">AST</a>
32 <a href="IntermediateLanguage">IntermediateLanguage</a>.</p></div>
36 <h2 id="_description">Description</h2>
37 <div class="sectionbody">
38 <div class="paragraph"><p>This pass performs lexing and parsing to produce an abstract syntax
43 <h2 id="_implementation">Implementation</h2>
44 <div class="sectionbody">
45 <div class="ulist"><ul>
48 <a href="https://github.com/MLton/mlton/blob/master/mlton/front-end/front-end.sig"><span class="monospaced">front-end.sig</span></a>
53 <a href="https://github.com/MLton/mlton/blob/master/mlton/front-end/front-end.fun"><span class="monospaced">front-end.fun</span></a>
60 <h2 id="_details_and_notes">Details and Notes</h2>
61 <div class="sectionbody">
62 <div class="paragraph"><p>The lexer is produced by <a href="MLLex">MLLex</a> from
63 <a href="https://github.com/MLton/mlton/blob/master/mlton/front-end/ml.lex"><span class="monospaced">ml.lex</span></a>.</p></div>
64 <div class="paragraph"><p>The parser is produced by <a href="MLYacc">MLYacc</a> from
65 <a href="https://github.com/MLton/mlton/blob/master/mlton/front-end/ml.grm"><span class="monospaced">ml.grm</span></a>.</p></div>
66 <div class="paragraph"><p>The specifications for the lexer and parser were originally taken from
67 <a href="SMLNJ"> SML/NJ</a> (version 109.32), but have been heavily modified
72 <div id="footnotes"><hr></div>
74 <div id="footer-text">
76 <div id="footer-badges">