package libsail

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val opt_ddump_initial_ast : bool ref
val opt_ddump_side_effect : bool ref
val opt_ddump_tc_ast : bool ref
val opt_list_files : bool ref
val opt_reformat : string option ref
type abstract_instantiation = {
  1. env_update : Type_check.env -> Type_check.env;
  2. config_ids : (Ast.kind_aux * string list) Ast_util.Bindings.t;
}

env_update: This function takes a pre abstract instantiation type environment, and makes any abstract types concrete if they were instantiated.

config_ids: The set of identifiers that were instantiated from the provided configuration.

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".

OCaml

Innovation. Community. Security.