From aadbe7ede88dc9bbbda6a09876baacd6797153fb Mon Sep 17 00:00:00 2001 From: Alasdair Armstrong Date: Wed, 6 Feb 2019 19:44:22 +0000 Subject: Improve emacs mode Can now use C-c C-s to start an interactive Sail process, C-c C-l to load a file, and C-c C-q to kill the sail process. Type errors are highlighted in the emacs buffer (like with merlin for OCaml) with a tooltip for the type-error, as well as being displayed in the minibuffer. Need to add a C-c C-x command like merlin to jump to the error, and figure out how to handle multiple files nicely, as well as hooking the save function like tuareg/merlin, but this is already enough to make working with small examples quite a bit more pleasant. --- src/process_file.mli | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/process_file.mli') diff --git a/src/process_file.mli b/src/process_file.mli index 74d847a5..4496e046 100644 --- a/src/process_file.mli +++ b/src/process_file.mli @@ -52,6 +52,8 @@ $include directive that is importing the file, if applicable. *) val parse_file : ?loc:Parse_ast.l -> string -> Parse_ast.defs +val clear_symbols : unit -> unit + val convert_ast : Ast.order -> Parse_ast.defs -> unit Ast.defs val preprocess_ast : (Arg.key * Arg.spec * Arg.doc) list -> Parse_ast.defs -> Parse_ast.defs val check_ast: Type_check.Env.t -> unit Ast.defs -> Type_check.tannot Ast.defs * Type_check.Env.t -- cgit v1.2.3