package libsail

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val opt_ddump_initial_ast : bool Stdlib.ref
val opt_ddump_tc_ast : bool Stdlib.ref
val opt_list_files : bool Stdlib.ref
val opt_reformat : string option Stdlib.ref
module type FILE_HANDLER = sig ... end

The FILE_HANDLER module type allows plugins to define handlers for custom file types. It defines how those files are processed and eventually generate Sail AST types.

val register_file_handler : extension:string -> (module FILE_HANDLER) -> unit

Register a file handler module. The extension should be the extension for the file type we want to handle, e.g. ".json".

val load_modules : ?target:Target.target -> string -> (Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list -> Type_check.Env.t -> Project.project_structure -> Project.mod_id list -> Initial_check.ctx * Type_check.typed_ast * Type_check.Env.t * Effects.side_effect_info
val load_files : ?target:Target.target -> string -> (Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list -> Type_check.Env.t -> string list -> Initial_check.ctx * Type_check.typed_ast * Type_check.Env.t * Effects.side_effect_info
OCaml

Innovation. Community. Security.