package lambdapi

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Parsing.PrattSource

Parsing of infix operators using the Pratter library.

The interface for the Pratter library can be seen at

Sourcemodule Pratt : sig ... end
include module type of struct include Pratt end

parse ~find_sym ss env t Pratt parses term t, unsugaring infix operators and prefix operators using signature state ss and environment env to determine which term is an operator, and to build new terms. Note that it doesn't recurse into abstractions or implications and alike. ~find_sym is used to scope symbol identifiers.

OCaml

Innovation. Community. Security.