Skip to content
Snippets Groups Projects
Commit f00d5c91 authored by Valentin Perrelle's avatar Valentin Perrelle
Browse files

[kernel] Deprecate Logic_interpr.Error

parent 27daf5a6
No related branches found
No related tags found
No related merge requests found
...@@ -28,4 +28,5 @@ module To_zone : sig ...@@ -28,4 +28,5 @@ module To_zone : sig
val compute_term_deps: (stmt -> term -> Locations.Zone.t option) ref val compute_term_deps: (stmt -> term -> Locations.Zone.t option) ref
end end
exception Error of location * string exception [@alert deprecated "Use directly Logic_parse_string.Error istead."]
Error of location * string
...@@ -340,7 +340,7 @@ module Select (Eval: Eval) = struct ...@@ -340,7 +340,7 @@ module Select (Eval: Eval) = struct
let pred = !Db.Properties.Interp.predicate ~env kf txt in let pred = !Db.Properties.Interp.predicate ~env kf txt in
select_predicate main_ui loc pred select_predicate main_ui loc pred
with with
| Logic_interp.Error (_, mess) -> | Logic_parse_string.Error (_, mess) ->
main_ui#error "Invalid %a: %s" pp_term_or_pred tp mess main_ui#error "Invalid %a: %s" pp_term_or_pred tp mess
| Parsing.Parse_error -> | Parsing.Parse_error ->
main_ui#error "Invalid %a: Parse error" pp_term_or_pred tp main_ui#error "Invalid %a: Parse error" pp_term_or_pred tp
......
...@@ -41,8 +41,8 @@ module Cache = Hashtbl.Make(Key) ...@@ -41,8 +41,8 @@ module Cache = Hashtbl.Make(Key)
let get_term kf term = let get_term kf term =
let env = logic_environment () in let env = logic_environment () in
try Some (!Db.Properties.Interp.term ~env kf term) try Some (Logic_parse_string.term ~env kf term)
with Logic_interp.Error _ | Parsing.Parse_error -> None with Logic_parse_string.Error _ | Parsing.Parse_error -> None
let key_of_localizable = let key_of_localizable =
let open Printer_tag in let open Printer_tag in
......
...@@ -685,7 +685,7 @@ let add_persistent_cmdline () = ...@@ -685,7 +685,7 @@ let add_persistent_cmdline () =
SlicingParameters.Select.WrAccess.clear () ; SlicingParameters.Select.WrAccess.clear () ;
end; end;
add_persistent_selection !selection; add_persistent_selection !selection;
with Logic_interp.Error(_loc,msg) -> with Logic_parse_string.Error(_loc,msg) ->
SlicingParameters.warning ~wkey:SlicingParameters.wkey_cmdline SlicingParameters.warning ~wkey:SlicingParameters.wkey_cmdline
"%s. Slicing requests from the command line are ignored." msg "%s. Slicing requests from the command line are ignored." msg
end; end;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment