ligo/vendors/ligo-utils/tezos-utils/michelson-parser/michelson_v1_macros.mli

87 lines
3.5 KiB
OCaml
Raw Permalink Normal View History

2019-05-13 00:46:25 +04:00
(*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* Permission is hereby granted, free of charge, to any person obtaining a *)
(* copy of this software and associated documentation files (the "Software"),*)
(* to deal in the Software without restriction, including without limitation *)
(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *)
(* and/or sell copies of the Software, and to permit persons to whom the *)
(* Software is furnished to do so, subject to the following conditions: *)
(* *)
(* The above copyright notice and this permission notice shall be included *)
(* in all copies or substantial portions of the Software. *)
(* *)
(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*)
(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *)
(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *)
(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*)
(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *)
(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *)
(* DEALINGS IN THE SOFTWARE. *)
(* *)
(*****************************************************************************)
open Tezos_micheline
type 'l node = ('l, string) Micheline.node
type error += Unexpected_macro_annotation of string
2019-05-13 00:46:25 +04:00
type error += Sequence_expected of string
2019-05-13 00:46:25 +04:00
type error += Invalid_arity of string * int * int
val expand : 'l node -> 'l node tzresult
2019-05-13 00:46:25 +04:00
val expand_rec : 'l node -> 'l node * error list
val expand_caddadr : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_set_caddadr : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_map_caddadr : 'l node -> 'l node option tzresult
val expand_deprecated_dxiiivp : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_pappaiir : 'l node -> 'l node option tzresult
val expand_deprecated_duuuuup : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_compare : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_asserts : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_unpappaiir : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_if_some : 'l node -> 'l node option tzresult
2019-05-13 00:46:25 +04:00
val expand_if_right : 'l node -> 'l node option tzresult
val unexpand : 'l node -> 'l node
2019-05-13 00:46:25 +04:00
val unexpand_rec : 'l node -> 'l node
val unexpand_caddadr : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_set_caddadr : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_map_caddadr : 'l node -> 'l node option
val unexpand_deprecated_dxiiivp : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_pappaiir : 'l node -> 'l node option
val unexpand_deprecated_duuuuup : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_compare : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_asserts : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_unpappaiir : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_if_some : 'l node -> 'l node option
2019-05-13 00:46:25 +04:00
val unexpand_if_right : 'l node -> 'l node option