package lambdapi
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1
doc/lambdapi.common/Common/Library/index.html
Module Common.LibrarySource
Lambdapi library management.
Resources directory.
lib_root stores the result of the "--lib-root" flag when given.
lib_mappings stores the specified mappings of library paths.
set_lib_root dir sets the library root to directory dir. The following directories are set sequentially, such that the active one is the last valid one
/usr/local/lib/lambdapi/lib_root/$OPAM_SWITCH_PREFIX/lib/lambdapi/lib_root$LAMBDAPI_LIB_ROOT/lib/lambdapi/lib_root- the directory given as parameter of the
--lib-rootcommand line argument.
add_mapping (mn, fn) adds a new mapping from the module name mn to the file name fn if mn is not already mapped and fn is a valid directory. In case of failure the program terminates and a graceful error message is displayed.
file_of_path mp converts module path mp into the corresponding "file path" (with no attached extension). It is assumed that lib_root has been set, possibly with set_lib_root.
lp_src_extension is the expected extension for source files.
dk_src_extension is the extension for dk source files.
is_valid_src_extension s returns true iff s ends with lp_src_extension or dk_src_extension.
obj_extension is the expected extension for binary (object) files.
valids_extensions is the list of valid file extensions.
path_of_file escape fname computes the module path that corresponds to the filename fname. escape converts irregular path elements into escaped identifiers if needed. Raises Fatal if fname doesn't have a valid extension.
install_path n prefixes the filename n by the library root.
Restore library mappings and console state after running f x.