package lambdapi

All checked builds pass
  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambdapi-4.0.0.tbz
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1

doc/lambdapi.parsing/Parsing/Parser/index.html

Module Parsing.ParserSource

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.

Sourceval parser_fatal : Common.Pos.pos -> ('a, 'b) Lplib.Base.koutfmt -> 'a

parser_fatal pos fmt is a wrapper for Error.fatal that enforces that the error has an attached source code position.

Sourcemodule type PARSER = sig ... end

Module type of a parser.

Sourceval set_filename : Lexing.lexbuf -> string -> unit
Sourcemodule Dk : PARSER with type lexbuf := Lexing.lexbuf

Parsing dk syntax.

Sourcemodule Lp : sig ... end

Parsing lp syntax.

include module type of struct include Lp end
include PARSER with type lexbuf := Sedlexing.lexbuf

parse_lexbuf lb is the same as parse_string but with an already created lexbuf.

Sourceval parse_in_channel : string -> in_channel -> Syntax.p_commands

parse f ic returns a stream of commands parsed from channel ic created from file f. Commands are parsed lazily and the channel is closed once all entries are parsed.

Sourceval parse_string : string -> string -> Syntax.p_commands

parse_string f s returns a stream of parsed commands from string s which comes from file f (f can be anything).

Sourceval parse_term_string : Lexing.position -> string -> Syntax.p_term

parse_rwpatt_string p s parses a term from string s assuming that s starts at position p.

Sourceval parse_rwpatt_string : Lexing.position -> string -> Syntax.p_rwpatt

parse_rwpatt_string f s parses a rewrite pattern specification from string s assuming that s starts at position p.

Sourceval parse_search_string : allow_rocq_syntax:bool -> alone:bool -> Lexing.position -> string -> Syntax.search

parse_search_string ~allow_rocq_syntax ~alone p s parses a query from string s assuming that s starts at position p. ~allow_rocq_syntax to allow a subset of Rocq syntax (fun/forall/exists) ~alone to parse the query only if followed by EOF.

Sourceval path_of_string : string -> Common.Path.t

path_of_string s converts the string s into a path.

Sourceval qident_of_string : string -> Core.Term.qident

qident_of_string s converts the string s into a qident.

Sourceval parse_file : string -> Syntax.p_commands

parse_file fname selects and runs the correct parser on file fname, by looking at its extension.