package lambdapi
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=d01e5f13db2eaba6e4fe330667149e0059d4886c651ff9d6b672db2dfc9765ed
sha512=33b68c972aca37985ed73c527076198e7d4961c7e27c89cdabfe4d1cff97cd41ccfb85ae9499eb98ad9a0aefd920bc55555df6393fc441ac2429e4d99cddafa8
doc/lambdapi.tool/Tool/External/index.html
Module Tool.External
Source
Provides a function for calling external checkers using a Unix command.
run prop pp cmd sign
runs the external checker given by the Unix command cmd
on the signature sign
. The signature is processed and written to a Unix pipe using the formatter pp
, and the produced output is fed to the command on its standard output. The return value is Some true
in case of a successful check, Some false
in the case of a failed check, and None
if the external tool cannot conclude. Note that the command cmd
should write either "YES"
, "NO"
or "MAYBE"
as its first line of (standard) output. The exception Fatal
may be raised if cmd
exhibits a different behavior. The name prop
is used to refer to the checked property when an error message is displayed.
NOTE that for any given property being checked, the simplest possible valid command is "echo MAYBE"
. Moreover, "cat > file; echo MAYBE"
can conveniently be used to write generated data to the file "file"
. This is useful for debugging purposes.