Skip to content

Commit 15a6b28

Browse files
authored
Add documentation to Prec type (ocaml-ppx#1878)
1 parent 66cada7 commit 15a6b28

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

lib/Prec.mli

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
(** Precedence levels of Ast terms. *)
1313
type t =
1414
| Low
15-
| Semi
16-
| LessMinus
17-
| ColonEqual
18-
| As
19-
| Comma
20-
| MinusGreater
21-
| BarBar
22-
| AmperAmper
23-
| InfixOp0
24-
| InfixOp1
25-
| ColonColon
26-
| InfixOp2
27-
| InfixOp3
28-
| InfixOp4
29-
| UMinus
15+
| Semi (** [;] *)
16+
| LessMinus (** [<-] *)
17+
| ColonEqual (** [:=] *)
18+
| As (** [as] *)
19+
| Comma (** [,] *)
20+
| MinusGreater (** [->] *)
21+
| BarBar (** [or] and [||] *)
22+
| AmperAmper (** [&] and [&&] *)
23+
| InfixOp0 (** [=…], [<…], [>…], [|…], [&…], [$…] and [!=] *)
24+
| InfixOp1 (** [@…] and [^…] *)
25+
| ColonColon (** [::] *)
26+
| InfixOp2 (** [+…] and [-…] *)
27+
| InfixOp3 (** [*…], [/…], [%…], [mod], [land], [lor] and [lxor] *)
28+
| InfixOp4 (** [**…], [lsl], [lsr] and [asr] *)
29+
| UMinus (** [-] and [-.] (prefix) *)
3030
| Apply
31-
| HashOp
31+
| HashOp (** [#…] *)
3232
| Dot (** [x.y] and [x#y] *)
3333
| High
3434
| Atomic

0 commit comments

Comments
 (0)