package dolmen
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=80fc33ae81817a79c6e6b2f6c01c4cfcc0af02bfe4d2d1b87cf70b84cdde3928
sha512=3a44a99bce871161bc70cf909c813e9e6c91c590873cbc163c69b2ec90ab5be65bf0bf45430bc8d00d85d75cf0af004b06b8f5f1c9d4d47c8a30ab9f28762c04
doc/dolmen.class/Dolmen_class/Logic/Make/index.html
Module Logic.Make
Source
Parameters
module L : Dolmen_intf.Location.S
module I : Dolmen_intf.Id.Logic
Signature
Raised when trying to find a language given a file extension.
Supported languages
type language =
| Alt_ergo
(*Alt-ergo's native language
*)| Dimacs
(*Dimacs CNF format
*)| ICNF
(*iCNF format
*)| Smtlib2 of Dolmen_smtlib2.Script.version
(*Smtlib v2 latest version
*)| Tptp of Dolmen_tptp.version
(*TPTP format (including THF), latest version
*)| Zf
(*Zipperposition format
*)
The languages supported by the Logic class.
Enumeration of languages together with an appropriate name. Can be used for command-line arguments (for instance, with cmdliner).
High-level parsing
Tries and find the given file, using the language specification.
Given a filename, parse the file, and return the detected language together with the list of statements parsed.
Given a filename, parse the file, and return the detected language together with the list of statements parsed.
val parse_raw_lazy :
?language:language ->
filename:string ->
string ->
language * L.file * S.t list Lazy.t
Given a filename and a string, parse the string, and return the detected language together with the list of statements parsed.
val parse_input :
?language:language ->
[< `File of string
| `Stdin of language
| `Raw of string * language * string ] ->
language * L.file * (unit -> S.t option) * (unit -> unit)
Incremental parsing of either a file (see parse_file
), stdin (with given language), or some arbitrary contents, of the form `Raw (filename, language, contents)
. Returns a triplet (lan, gen, cl)
, containing the language detexted lan
, a genratro function gen
for parsing the input, and a cleanup function cl
to call in order to cleanup the file descriptors.
Mid-level parsing
The type of language modules.
These function take as argument either a language, a filename, or an extension, and return a triple:
- language
- language file extension (starting with a dot)
- appropriate parsing module
Extensions should start with a dot (for instance : ".smt2"
)