elpi
ELPI - Embeddable λProlog Interpreter
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package elpi
-
elpi
-
-
elpi.lexer_config
-
elpi.trace.ppx
-
elpi.trace.runtime
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val init :
?flags:flags ->
builtins:builtins list ->
?file_resolver:( ?cwd:string -> unit:string -> unit -> string ) ->
?legacy_parser:bool ->
unit ->
elpi
Initialize ELPI.
init
must be called before invoking the parser.
- parameter flags
for the compiler, see
Compile
.flags
- parameter builtins
the set of built-in predicates, eg
Elpi
.Builtin.std_builtins
- parameter file_resolver
maps a file name to an absolute path, if not specified the options like
-I
or the env variableTJPATH
serve as resolver. The resolver returns the abslute file name (possibly adjusting the unit extension). By default it fails. See alsoParse
.std_resolver.
- returns
a handle
elpi
to an elpi instance equipped with the givenbuiltins
and where accumulate resolves files with the givenfile_resolver
.
Set tracing options. trace argv
can be called before Execute
. returns options not known to the trace system.
val set_warn : ( ?loc:Ast.Loc.t -> string -> unit ) -> unit
Override default runtime error functions (they call exit)
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
val set_std_formatter : Format.formatter -> unit
val set_err_formatter : Format.formatter -> unit
ON THIS PAGE
No table of contents