package archetype

  1. Overview
  2. Docs
module T = Michelson
module M = Model
module A = ParseTree
type env = {
  1. name : string;
}
val mk_env : ?name:string -> 'a -> env
val parse_michelson : (string * Stdlib.in_channel) -> T.michelson * env
type ir_env = {
  1. cpt_alpha : int;
  2. deep : int;
  3. fail : bool;
  4. scopes : T.dinstruction list list;
}
val mk_ir_env : ?cpt_alpha:int -> ?deep:int -> ?fail:bool -> ?scopes:T.dinstruction list list -> 'a -> ir_env
val inc_deep : ir_env -> ir_env
val dec_deep : ir_env -> ir_env
val to_dir : (T.michelson * env) -> T.dprogram * env
val to_ir : (T.dprogram * env) -> T.ir * env
val to_model : (T.ir * env) -> M.model * env
val to_archetype : (M.model * env) -> A.archetype
OCaml

Innovation. Community. Security.