package sexp_macro
-
sexp_macro
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The load...
functions of this module mirror the corresponding functions of the Sexp
module except that they do macro-expansion in the loaded file and may throw additional exceptions.
val load_sexp : string -> Sexplib.Sexp.t
load_sexp file
like {!Sexp.load_sexp} file
, but resolves the macros contained in file
.
val load_sexps : string -> Sexplib.Sexp.t list
load_sexps file
like {!Sexp.load_sexps} file
, but resolves the macros contained in file
.
val load_sexp_conv :
string ->
(Sexplib.Sexp.t -> 'a) ->
[ `Result of 'a | `Error of exn * Sexplib.Sexp.Annotated.t ] as 'body
load_sexp_conv file f
uses load_sexp
and converts the result using f
.
val load_sexps_conv :
string ->
(Sexplib.Sexp.t -> 'a) ->
[ `Result of 'a | `Error of exn * Sexplib.Sexp.Annotated.t ] as 'body list
load_sexps_conv file f
uses load_sexps
and converts the result using f
.
val load_sexp_conv_exn : string -> (Sexplib.Sexp.t -> 'a) -> 'a
load_sexp_conv_exn file f
like load_sexp_conv
, but raises an exception in case of conversion error.
val load_sexps_conv_exn : string -> (Sexplib.Sexp.t -> 'a) -> 'a list
load_sexps_conv_exn file f
like load_sexps_conv
, but raises an exception in case of conversion error.