package lambdapi

  1. Overview
  2. Docs

Module Parsing.PrettySource

Pretty-printing the parser-level AST.

This module defines functions that allow printing elements of syntax found in the parser-level abstract syntax. This is used, for example, to print a file in the Lambdapi syntax, given the AST obtained when parsing a file in the Dedukti syntax.

Sourceval keyword_table : (string, LpLexer.token) Hashtbl.t

Keywords table.

Sourceval is_keyword : string -> bool
Sourceval raw_ident : string Lplib.Base.pp
Sourceval param_id : Syntax.p_ident option Lplib.Base.pp
Sourceval param_ids : Syntax.p_ident option list Lplib.Base.pp
Sourceval needs_wrap : Syntax.p_term_aux Common.Pos.loc -> bool
Sourceval no_named_param : ('a option list * 'b * 'c) -> bool
Sourceval env : Syntax.p_term array option Lplib.Base.pp
Sourceval params_list : Syntax.p_params list Lplib.Base.pp
Sourceval rule : string -> Syntax.p_rule Lplib.Base.pp
Sourceval inductive : string -> Syntax.p_inductive Lplib.Base.pp

unpack eqs transforms a p_term of the form LpLexer.cons (LpLexer.equiv t u) (LpLexer.cons (LpLexer.equiv v w) ...) into a list [(t,u); (v,w); ...]. See unif_rule.ml.

Sourceval relation : Format.formatter -> Syntax.relation -> unit
Sourceval where : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a Syntax.where -> unit
Sourceval f : Format.formatter -> string -> unit
Sourceval search_constr : Format.formatter -> Syntax.search_constr -> unit
Sourceval generalize : Format.formatter -> bool -> unit
Sourceval search_base : Format.formatter -> Syntax.search_base -> unit
Sourceval op : Format.formatter -> Syntax.op -> unit
Sourceval filter : Format.formatter -> Syntax.filter -> unit