package lambdapi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=1066aed2618fd8e6a400c5147dbf55ea977ce8d3fe2e518ac6785c6775a1b8be
sha512=f7f499626aba92e070ae69581299a58525973fdbfd04a160ed3ac89209fb6cbe307b816d0b23e1b75bc83467ce8b4b0530c6f9816eaf58f7a07fde65a450106c
doc/lambdapi.parsing/Parsing/Package/index.html
Module Parsing.Package
Source
Find and read lambdapi.pkg files.
A package configuration file is expected at the root of every package. The file is used to figure out the module path under which the package must be placed. This information is also useful for installation.
Pacage configuration file name.
Configuration file format (using an example).
==== lambdapi.pkg ============ # only two required fields: package_name = my_package root_path = contrib.my_pack # comments not at end of line undefined = ignored ==============================
Configuration data read from a file.
read fname
reads configuration data from the file fname
. The exception Fatal
is raised in case of error (non-existing file, bad format).
find_config fname
looks for a configuration file above fname
, which is typically a source file or an object file (it can also be a directory). If there is no configuration file in the same directory as fname
, then we look in the parent directory and so on, up to the root or as long as no Sys_error
is raised. Note that fname
is first normalized with a call to Filename.realpath
.
apply_config fname
attempts to find a configuration file from the directory or file fname
, and applies the corresponding configuration.