<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.8">
<title>OperatorPrecedence</title>
<link rel="stylesheet" href="./asciidoc.css" type="text/css">
<link rel="stylesheet" href="./pygments.css" type="text/css">


<script type="text/javascript" src="./asciidoc.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
asciidoc.install();
/*]]>*/
</script>
<link rel="stylesheet" href="./mlton.css" type="text/css"/>
</head>
<body class="article">
<div id="banner">
<div id="banner-home">
<a href="./Home">MLton 20130715</a>
</div>
</div>
<div id="header">
<h1>OperatorPrecedence</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p><a href="StandardML">Standard ML</a> has a built in notion of precedence for
certain symbols.  Every program that includes the
<a href="BasisLibrary">Basis Library</a> automatically gets the following infix
declarations.  Higher number indicates higher precedence.</p></div>
<div class="listingblock">
<div class="content"><div class="highlight"><pre><span class="k">infix</span><span class="w"> </span><span class="mi">7</span><span class="w"> </span><span class="n">*</span><span class="w"> </span><span class="n">/</span><span class="w"> </span><span class="n">mod</span><span class="w"> </span><span class="n">div</span><span class="w"></span>
<span class="k">infix</span><span class="w"> </span><span class="mi">6</span><span class="w"> </span><span class="n">+</span><span class="w"> </span><span class="n">-</span><span class="w"> </span><span class="n">^</span><span class="w"></span>
<span class="k">infixr</span><span class="w"> </span><span class="mi">5</span><span class="w"> </span><span class="n">::</span><span class="w"> </span><span class="n">@</span><span class="w"></span>
<span class="k">infix</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="n">&lt;&gt;</span><span class="w"> </span><span class="n">&gt;</span><span class="w"> </span><span class="n">&gt;=</span><span class="w"> </span><span class="n">&lt;</span><span class="w"> </span><span class="n">&lt;=</span><span class="w"></span>
<span class="k">infix</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="n">:=</span><span class="w"> </span><span class="n">o</span><span class="w"></span>
<span class="k">infix</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="n">before</span><span class="w"></span>
</pre></div></div></div>
</div>
</div>
</div>
<div id="footnotes"><hr></div>
<div id="footer">
<div id="footer-text">
</div>
<div id="footer-badges">
</div>
</div>
</body>
</html>
