package lambdapi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ef0c364e355c6c44327e62e79c484b1808d6e144bd6b899d39f0c9c3a351d5f2
sha512=b8b01a1203ea75ae79c59f67e787097f3df7603fc814776fbdd867625165dd00c70918d6edbfdc05c3a63fe7686f95e0523ad106f9da63234a2db33c4d42837e
doc/lambdapi.parsing/Parsing/Parser/index.html
Module Parsing.Parser
Source
Parsing functions for Lambdapi.
This module includes two parsers: a parser for the Lambdapi syntax whose functions are available either through the submodule Parser.Lp
or directly in Parser
, and a parser for the Dedukti syntax available through Parser.Dk
.
parser_fatal pos fmt
is a wrapper for Error.fatal
that enforces that the error has an attached source code position.
include module type of struct include Lp end
parse inchan
returns a stream of commands parsed from channel inchan
. Commands are parsed lazily and the channel is closed once all entries are parsed.
parse_string f s
returns a stream of parsed commands from string s
which comes from file f
(f
can be anything).
path_of_string s
converts the string s
into a path.
qident_of_string s
converts the string s
into a qident.
parse_file fname
selects and runs the correct parser on file fname
, by looking at its extension.