package lambdapi

  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

Dune Dependency

Authors

Maintainers

Sources

lambdapi-2.5.1.tbz
sha256=2c251021b6fac40c05282ca183902da5b1008e69d9179d7a9543905c2c21a28a
sha512=69535f92766e6fedc2675fc214f0fb699bde2a06aa91d338c93c99756235a293cf16776f6328973dda07cf2ad402e58fe3104a08f1a896990c1778b42f7f9fcf

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.

Sourcemodule Lp : sig ... end
Sourcemodule Dk : PARSER

Parsing dk syntax.

include module type of struct include Lp end
include PARSER

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.

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

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

parse inchan returns a stream of terms parsed from channel inchan. Terms are parsed lazily and the channel is closed once all entries are parsed.

Sourceval parse_term_file : string -> Syntax.p_term Stream.t

parse_file fname returns a stream of parsed terms of file fname. Terms are parsed lazily.

Sourceval parse_term_string : string -> string -> Syntax.p_term Stream.t

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

Sourceval parse_search_query_string : string -> string -> SearchQuerySyntax.query Stream.t

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

Sourceval parse_qid : string -> Core.Term.qident
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.ast

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

OCaml

Innovation. Community. Security.