ligo/vendors/Preprocessor/EvalOpt.mli

33 lines
797 B
OCaml
Raw Normal View History

2020-03-23 22:43:06 +04:00
(* Parsing the command-line options of the LIGO preprocessor *)
(* The type [options] gathers the command-line options. *)
type language = PascaLIGO | CameLIGO | ReasonLIGO
val lang_to_string : language -> string
2020-03-23 22:43:06 +04:00
module SSet : Set.S with type elt = string
2020-03-23 22:43:06 +04:00
type options = <
input : string option;
2020-03-23 22:43:06 +04:00
libs : string list;
verbose : SSet.t;
offsets : bool;
lang : language;
ext : string (* ".ligo", ".mligo", ".religo" *)
2020-03-23 22:43:06 +04:00
>
val make :
input:string option ->
2020-03-23 22:43:06 +04:00
libs:string list ->
lang:language ->
offsets:bool ->
verbose:SSet.t ->
ext:string ->
2020-03-23 22:43:06 +04:00
options
(* Parsing the command-line options on stdin. The first parameter is
the name of the concrete syntax. This is needed to correctly handle
comments. *)
val read : lang:language -> ext:string -> options