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

22 lines
1.0 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
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