package sexp_macro
Module Sexp_macro.BlockingSource
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.
load_sexp file like {!Sexp.load_sexp} file, but resolves the macros contained in file.
If allow_includes is false then this raises an exception if file contains any :include macros. The default is true.
load_sexps file like {!Sexp.load_sexps} file, but resolves the macros contained in file.
If allow_includes is false then this raises an exception if file contains any :include macros. The default is true.
val load_sexp_conv :
?allow_includes:bool ->
string ->
(Sexplib.Sexp.t -> 'a) ->
[ `Result of 'a | `Error of exn * Sexplib.Sexp.Annotated.t ] as 'bodyload_sexp_conv file f uses load_sexp and converts the result using f.
val load_sexps_conv :
?allow_includes:bool ->
string ->
(Sexplib.Sexp.t -> 'a) ->
([ `Result of 'a | `Error of exn * Sexplib.Sexp.Annotated.t ] as 'body) listload_sexps_conv file f uses load_sexps and converts the result using f.
load_sexp_conv_exn file f like load_sexp_conv, but raises an exception in case of conversion error.
load_sexps_conv_exn file f like load_sexps_conv, but raises an exception in case of conversion error.
included_files returns the names of all files that will be loaded as result of macro expansion. This includes the file itself.