Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / src / OperatorPrecedence.adoc
CommitLineData
7f918cf1
CE
1OperatorPrecedence
2==================
3
4<:StandardML:Standard ML> has a built in notion of precedence for
5certain symbols. Every program that includes the
6<:BasisLibrary:Basis Library> automatically gets the following infix
7declarations. Higher number indicates higher precedence.
8
9[source,sml]
10----
11infix 7 * / mod div
12infix 6 + - ^
13infixr 5 :: @
14infix 4 = <> > >= < <=
15infix 3 := o
16infix 0 before
17----