package lambdapi

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

Install

Dune Dependency

Authors

Maintainers

Sources

lambdapi-2.4.1.tbz
sha256=221dff97ab245c49b7e6480fa2a3a331ab70eb86dd5d521e2c73151029bbb787
sha512=a39961bb7f04f739660a98a52981d4793709619cd21310ca6982ba78af81ef09e01c7517ee3b8b2687b09f7d2614d878c1d69494ca6ab8ef8205d240c216ce8a

doc/src/lambdapi.lplib/filename.ml.html

Source file filename.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include Stdlib.Filename

(** [realpath path] returns the absolute canonical path to file [path]. If
    [path] is invalid (i.e., it does not describe an existing file), then the
    exception [Invalid_argument] is raised. *)
external realpath : string -> string = "c_realpath"

let rec normalize fname =
  if Sys.file_exists fname then
    realpath fname
  else
    let dirnm = dirname fname in
    let basenm = basename fname in
    concat (normalize dirnm) basenm

(** [current_dir ()] returns the canonical running path of the program. *)
let current_dir : unit -> string = fun _ -> realpath "."
OCaml

Innovation. Community. Security.