OperatorPrecedence - MLton Standard ML Compiler (SML Compiler)

MLton MLTONWIKIVERSION | OperatorPrecedence |
Home Index

Standard ML has a built in notion of precedence for certain symbols. Every program that includes the Basis Library automatically gets the following infix declarations. Higher number indicates higher precedence.

    infix 7 * / mod div
    infix 6 + - ^
    infixr 5 :: @
    infix 4 = <> > >= < <=
    infix 3 := o
    infix 0 before

Last edited on 2005-12-02 04:23:19 by StephenWeeks.