1Ocaml_operators(3)               OCaml library              Ocaml_operators(3)
2
3
4

NAME

6       Ocaml_operators - Precedence level and associativity of operators
7

Module

9       Module   Ocaml_operators
10

Documentation

12       Module Ocaml_operators
13        : sig end
14
15
16       Precedence level and associativity of operators
17
18       The  following table lists the precedence level of all operator classes
19       from the highest to the lowest precedence. A few other  syntactic  con‐
20       structions are also listed as references.
21
22
23
24
25
26
27       Associativity
28              Operator class
29
30       -      !.. ~..
31
32       -      .() .[] .{}
33
34       left   #..
35
36       left   function application
37
38       -      - -.
39
40       right  **.. lsl lsr asr
41
42       left   *..  /.. %.. mod land lor lxor
43
44       left   +.. -..
45
46       right  ::
47
48       right  @.. ^..
49
50       left   =.. <.. >.. |.. &.. $.. !=
51
52       right  & &&
53
54       right  or ||
55
56       -      ,
57
58       right  <- :=
59
60       -      if
61
62       right  ;
63
64
65
66
67
68
69
70
71
72OCamldoc                          2021-07-22                Ocaml_operators(3)
Impressum