forked from ocaml-ppx/ocamlformat
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathAssoc.mli
21 lines (17 loc) · 1.03 KB
/
Assoc.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* Copyright (c) Facebook, Inc. and its affiliates. *)
(* *)
(* This source code is licensed under the MIT license found in *)
(* the LICENSE file in the root directory of this source tree. *)
(* *)
(**************************************************************************)
(** Associativities of Ast terms *)
type t = Left | Non | Right
val to_string : t -> string
val equal : t -> t -> bool
val of_prec : Prec.t -> t
(** [of_prec prec] is the associativity of Ast terms with precedence [prec].
(Associativity is uniform across precedence levels.) *)