API.Setup
module StrMap : sig ... end
val init :
?versions:(int * int * int) StrMap.t ->
?flags:flags ->
?state:state_descriptor ->
?quotations:quotations_descriptor ->
?hoas:hoas_descriptor ->
?calc:calc_descriptor ->
builtins:builtins list ->
?file_resolver:(?cwd:string -> unit:string -> unit -> string) ->
unit ->
elpi
Initialize ELPI.
init
must be called before invoking the parser.
Set tracing options. trace argv
can be called before Execute
. returns options not known to the trace system.
Override default runtime error functions (they call exit)
val set_warn : (?loc:Ast.Loc.t -> id:warning_id -> string -> unit) -> unit
val set_error : (?loc:Ast.Loc.t -> string -> 'a) -> unit
val set_anomaly : (?loc:Ast.Loc.t -> string -> 'a) -> unit
val set_type_error : (?loc:Ast.Loc.t -> string -> 'a) -> unit