package lambdapi

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambdapi-2.2.0.tbz
sha256=920de48ec6c2c3223b6b93879bb65d07ea24aa27f7f7176b3de16e5e467b9939
sha512=135f132730825adeb084669222e68bc999de97b12378fae6abcd9f91ae13093eab29fa49c854adb28d064d52c9890c0f5c8ff9d47a9916f66fe5e0fba3479759

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 : PARSER
Sourcemodule Dk : PARSER

Parsing dk syntax.

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.

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).

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.