forked from ocaml-ppx/ocamlformat
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathStd_ast.mli
40 lines (30 loc) · 1.34 KB
/
Std_ast.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(**************************************************************************)
(* *)
(* 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. *)
(* *)
(**************************************************************************)
(** Interface over the AST defined in vendor/ocaml-4.13 *)
open Ocaml_413
include module type of Parsetree
type use_file = toplevel_phrase list
type 'a t =
| Structure : structure t
| Signature : signature t
| Use_file : use_file t
| Core_type : core_type t
| Module_type : module_type t
| Expression : expression t
module Parse : sig
val ast : 'a t -> Lexing.lexbuf -> 'a
end
val equal : 'a t -> 'a -> 'a -> bool
val map : 'a t -> Ast_mapper.mapper -> 'a -> 'a
module Pprintast : sig
include module type of Pprintast
val ast : 'a t -> Format.formatter -> 'a -> unit
end