diff --git a/vendors/Preproc/E_Lexer.mli b/vendors/Preproc/E_Lexer.mli index 56925da5d..b28896cc9 100644 --- a/vendors/Preproc/E_Lexer.mli +++ b/vendors/Preproc/E_Lexer.mli @@ -10,6 +10,8 @@ val string_of_token : E_Parser.token -> string type error = Invalid_character of char +val error_to_string : error -> string + val format : ?offsets:bool -> error Region.reg -> file:bool -> string Region.reg diff --git a/vendors/Preproc/E_Lexer.mll b/vendors/Preproc/E_Lexer.mll index d476d9299..3da329603 100644 --- a/vendors/Preproc/E_Lexer.mll +++ b/vendors/Preproc/E_Lexer.mll @@ -31,7 +31,7 @@ type error = Invalid_character of char let error_to_string = function Invalid_character c -> - sprintf "Invalid character '%c' (%d).\n" c (Char.code c) + sprintf "Invalid character '%c' (%d)." c (Char.code c) let format ?(offsets=true) Region.{region; value} ~file = let msg = error_to_string value diff --git a/vendors/Preproc/EvalOpt.ml b/vendors/Preproc/EvalOpt.ml index ea21bff44..c2ce869f6 100644 --- a/vendors/Preproc/EvalOpt.ml +++ b/vendors/Preproc/EvalOpt.ml @@ -4,19 +4,23 @@ type language = PascaLIGO | CameLIGO | ReasonLIGO +module SSet = Set.Make (String) + type options = < input : string; libs : string list; lang : language; - offsets : bool + offsets : bool; + verbose : SSet.t > -let make ~input ~libs ~lang ~offsets = +let make ~input ~libs ~lang ~offsets ~verbose = object method input = input method libs = libs method lang = lang method offsets = offsets + method verbose = verbose end (* Auxiliary functions and modules *) @@ -42,8 +46,9 @@ let help () = printf "where is the source file,\n"; print "and each