Up

module Extension

: sig
#
exception Unknown
#
type t = {
# name
: string;
# private_def
: string list;
# public_def
: string list;
# packages
: string list;
# keywords
: (string * Raw_parser.token) list;
}

Definition of an extension (as seen from Lexer and Typer)

#
val ident : Ident.t
#
type set = Std.String.Set.t

Set of extension name

#
val keywords : set -> Raw_lexer.keywords
#
val register : set -> Env.t -> Env.t
#
val all : set
#
val registry : t Std.String.Map.t
#
val lookup : string -> t option
#
val from_packages : string list -> set
#
val empty : set
end