package lambdapi
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=d01e5f13db2eaba6e4fe330667149e0059d4886c651ff9d6b672db2dfc9765ed
sha512=33b68c972aca37985ed73c527076198e7d4961c7e27c89cdabfe4d1cff97cd41ccfb85ae9499eb98ad9a0aefd920bc55555df6393fc441ac2429e4d99cddafa8
doc/lambdapi.common/Common/Library/index.html
Module Common.Library
Source
Lambdapi library management.
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-root
command 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.
install_path fname
prefixes the filename fname
by the path to the library root.