package universo
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=97171b48dd96043d84587581d72edb442f63e7b5ac1695771aa1c3c9074739e15bc7d17678fedb7062acbf403a0bf323d97485c31b92376b80c63b5c2300ee3c
sha256=5e1b6a859dfa1eb2098947a99c7d11ee450f750d96da1720f4834e1505d1096c
doc/universo.common/Common/Files/index.html
Module Common.Files
Source
path to a file
type _ channel =
| In : in_channel -> cin channel
| Out : out_channel * Format.formatter -> cout channel
Gather out_channel and in_channel in a GADT for input and output files. In the case of an output file, we store also the formatter associated with.
Simplify directory where simplified files are created.
Suffix used for files containing universe declarations
Suffix used for files containing universe constraints
Suffix used for files containing universe solution
Suffix used for elaborated file where sorts are replaced by fresh variables
type step = [
| `Input
(*Input module
*)| `Output
(*Output module
*)| `Elaboration
(*File with universe declarations
*)| `Checking
(*File with constraints
*)| `Solution
(*File containing the solution
*)| `Simplify
(*Output file where the variables are replaced by the solution
*)
]
The steps used to refer the files used by Universo
add_sufix file suffix
returns the string file'
where suffix is_added at then end of file
add_dir dir file
prefix the filename file
with the directory dir
get_out_path p s
returns the path that corresponds to the step s
for path p
from_string f s
returns the filename that corresponds to the step s
for file f
from_string f s
returns the filename that corresponds to the step s
for file f
fmt_of_file out_file
returns the formatter associated to an out_file
in_channel_of_file in_file
returns the channel associated to an in_file
md_of path step
returns the mident associated to the Universo file file
for step step
.