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