ligo/src/client/embedded/alpha/client_proto_programs.mli

26 lines
1.2 KiB
OCaml
Raw Normal View History

2016-09-08 21:13:10 +04:00
(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2016. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
2017-07-22 02:37:33 +04:00
type 'a parsed =
{ ast : 'a ;
source : string ;
loc_table : (string * (int * Script_located_ir.location) list) list }
2016-09-08 21:13:10 +04:00
2017-07-22 02:37:33 +04:00
val parse_program: string -> Script.code parsed tzresult Lwt.t
val parse_data: string -> Script.expr parsed tzresult Lwt.t
val parse_data_type: string -> Script.expr parsed tzresult Lwt.t
val print_storage: Format.formatter -> Script.storage -> unit
val report_errors: Client_commands.context -> error list -> unit Lwt.t
2017-07-22 02:37:33 +04:00
module Program : Client_aliases.Alias with type t = Script.code parsed
2016-09-08 21:13:10 +04:00
val commands: unit -> Client_commands.command list