package lambdapi

  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

Dune Dependency

Authors

Maintainers

Sources

lambdapi-2.5.0.tbz
sha256=9bc8ae3694dd51bd5742e7aba760bd2878c4b0e5ef9b3d4a7b06f3cd303b611d
sha512=c812c3129b3d85b0c4d7e741d11137dbb4fe2a0aaba3a5968409080b742924ecb506280c19ad83ef6bc910346db96d87780313fa7683c29345edae16ae79c704

doc/lambdapi.parsing/Parsing/Package/index.html

Module Parsing.PackageSource

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.

Sourceval pkg_file : string

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 ==============================

Sourcetype config_data = {
  1. package_name : string;
  2. root_path : Common.Path.t;
}

Configuration data read from a file.

Sourceval read : string -> config_data

read fname reads configuration data from the file fname. The exception Fatal is raised in case of error (non-existing file, bad format).

Sourceval find_config : string -> string option

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.

Sourceval apply_config : string -> unit

apply_config fname attempts to find a configuration file from the directory or file fname, and applies the corresponding configuration.

OCaml

Innovation. Community. Security.