---
name: "Ocaml_operators"
section: "3o"
platform: "linux"
package: "ocaml"
version: "5.5.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Ocaml_operators"
---

# Ocaml\_operators(3o)

Precedence level and associativity of operators

## NAME

Ocaml\_operators -  Precedence level and associativity of operators

## Module

Module   Ocaml\_operators

## Documentation

Module **Ocaml\_operators**\
  :  **sig end**

### Precedence level and associativity of operators

The following table lists the precedence level of all operator classes from the highest to the lowest precedence. A few other syntactic constructions are also listed as references.

- Associativity

  Operator class

- \-

  !.. ~..

- \-

  .() .\[\] .{}

- left

  \#..

- left

  function application

- \-

  \- -.

- right

  \*\*.. lsl lsr asr

- left

  \*..  /.. %.. mod land lor lxor

- left

  \+.. -..

- right

  ::

- right

  @.. ^..

- left

  \=.. \<.. \>.. \|.. &.. $.. !=

- right

  & &&

- right

  or \|\|

- \-

  ,

- right

  \<- :=

- \-

  if

- right

  ;
