2017-11-02 21:57:17 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2017-11-02 21:57:17 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2018-01-29 04:06:47 +04:00
|
|
|
open Proto_alpha
|
2018-02-11 22:17:39 +04:00
|
|
|
open Alpha_context
|
2017-11-27 09:13:12 +04:00
|
|
|
open Tezos_micheline
|
|
|
|
|
2017-11-02 21:57:17 +04:00
|
|
|
val print_expr :
|
|
|
|
Format.formatter -> Script_repr.expr -> unit
|
|
|
|
|
|
|
|
val print_expr_unwrapped :
|
|
|
|
Format.formatter -> Script_repr.expr -> unit
|
|
|
|
|
|
|
|
(** Insert the type map returned by the typechecker as comments in a
|
|
|
|
printable Micheline AST. *)
|
|
|
|
val inject_types :
|
2018-02-05 17:58:19 +04:00
|
|
|
Script_tc_errors.type_map ->
|
2017-11-02 21:57:17 +04:00
|
|
|
Michelson_v1_parser.parsed ->
|
|
|
|
Micheline_printer.node
|
|
|
|
|
|
|
|
(** Unexpand the macros and produce the result of parsing an
|
|
|
|
intermediate pretty printed source. Useful when working with
|
|
|
|
contracts extracted from the blockchain and not local files. *)
|
2018-02-05 17:58:19 +04:00
|
|
|
val unparse_toplevel : ?type_map: Script_tc_errors.type_map -> Script.expr -> Michelson_v1_parser.parsed
|
2017-11-02 21:57:17 +04:00
|
|
|
val unparse_expression : Script.expr -> Michelson_v1_parser.parsed
|