package pratter

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

The main type of terms, that contains symbols, applications, binary and unary operators.

type table

The table is used to store available operators.

val get_unary : table -> term -> priority option

get_unary tbl t returns the priority, or binding power of operator identified t if it is a unary operator, or None.

val get_binary : table -> term -> (priority * associativity) option

get_binary tbl t returns the priority (or binding power) and associativity of operator t, or None if t isn't a binary operator.

val make_appl : table -> term -> term -> term

make_appl tbl t u returns the application of t to u, sometimes noted @(t, u), or just t u, with tbl being the table of operators.

OCaml

Innovation. Community. Security.