2017-06-15 01:35:24 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2017-06-15 01:35:24 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
open Tezos_micheline
|
|
|
|
|
2017-11-02 21:57:17 +04:00
|
|
|
type 'l node = ('l, string) Micheline.node
|
2017-06-15 01:35:24 +04:00
|
|
|
|
2017-12-01 20:00:32 +04:00
|
|
|
type error += Unexpected_macro_annotation of string
|
2017-12-05 18:47:11 +04:00
|
|
|
type error += Sequence_expected of string
|
|
|
|
type error += Invalid_arity of string * int * int
|
2017-06-15 01:35:24 +04:00
|
|
|
|
2017-12-01 20:00:32 +04:00
|
|
|
val expand : 'l node -> 'l node tzresult
|
|
|
|
|
|
|
|
val expand_caddadr : 'l node -> 'l node option tzresult
|
|
|
|
val expand_set_caddadr : 'l node -> 'l node option tzresult
|
|
|
|
val expand_map_caddadr : 'l node -> 'l node option tzresult
|
|
|
|
val expand_dxiiivp : 'l node -> 'l node option tzresult
|
|
|
|
val expand_paaiair : 'l node -> 'l node option tzresult
|
|
|
|
val expand_duuuuup : 'l node -> 'l node option tzresult
|
|
|
|
val expand_compare : 'l node -> 'l node option tzresult
|
|
|
|
val expand_asserts : 'l node -> 'l node option tzresult
|
|
|
|
val expand_unpaaiair : 'l node -> 'l node option tzresult
|
|
|
|
val expand_if_some : 'l node -> 'l node option tzresult
|
|
|
|
val expand_if_right : 'l node -> 'l node option tzresult
|
2017-06-15 01:35:24 +04:00
|
|
|
|
2017-11-02 21:57:17 +04:00
|
|
|
val unexpand : 'l node -> 'l node
|
2017-06-15 01:35:24 +04:00
|
|
|
|
2017-11-02 21:57:17 +04:00
|
|
|
val unexpand_caddadr : 'l node -> 'l node option
|
|
|
|
val unexpand_set_caddadr : 'l node -> 'l node option
|
|
|
|
val unexpand_map_caddadr : 'l node -> 'l node option
|
|
|
|
val unexpand_dxiiivp : 'l node -> 'l node option
|
|
|
|
val unexpand_paaiair : 'l node -> 'l node option
|
|
|
|
val unexpand_duuuuup : 'l node -> 'l node option
|
|
|
|
val unexpand_compare : 'l node -> 'l node option
|
|
|
|
val unexpand_asserts : 'l node -> 'l node option
|
|
|
|
val unexpand_unpaaiair : 'l node -> 'l node option
|
|
|
|
val unexpand_if_some : 'l node -> 'l node option
|
|
|
|
val unexpand_if_right : 'l node -> 'l node option
|