Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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 legacy (Dedukti) syntax.
val keyword_table : (string, LpLexer.token) Stdlib.Hashtbl.t
Keywords table.
val raw_ident : string Lplib.Base.pp
val ident : Syntax.p_ident Lplib.Base.pp
val meta_ident : Syntax.p_meta_ident Lplib.Base.pp
val param_id : Syntax.p_ident option Lplib.Base.pp
val param_ids : Syntax.p_ident option list Lplib.Base.pp
val raw_path : Common.Path.t Lplib.Base.pp
val path : Syntax.p_path Lplib.Base.pp
val qident : Syntax.p_qident Lplib.Base.pp
val modifier : Syntax.p_modifier Lplib.Base.pp
val modifiers : Syntax.p_modifier list Lplib.Base.pp
The possible priority levels are `Func
(top level, including abstraction and product), `Appl
(application) and `Atom
(smallest priority).
val term : Syntax.p_term Lplib.Base.pp
val params : Syntax.p_params Lplib.Base.pp
val params_list : Syntax.p_params list Lplib.Base.pp
val typ : Syntax.p_term option Lplib.Base.pp
val rule : string -> Syntax.p_rule Lplib.Base.pp
val inductive : string -> Syntax.p_inductive Lplib.Base.pp
val equiv : (Syntax.p_term * Syntax.p_term) Lplib.Base.pp
val unpack : Syntax.p_term -> (Syntax.p_term * Syntax.p_term) list
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.
val unif_rule : Syntax.p_rule Lplib.Base.pp
val proof_end : Syntax.p_proof_end Lplib.Base.pp
val rw_patt : Syntax.p_rw_patt Lplib.Base.pp
val assertion : Syntax.p_assertion Lplib.Base.pp
val query : Syntax.p_query Lplib.Base.pp
val tactic : Syntax.p_tactic Lplib.Base.pp
val assoc : Pratter.associativity Lplib.Base.pp
val notation : Core.Sign.notation Lplib.Base.pp
val subproof : Syntax.p_subproof Lplib.Base.pp
val subproofs : Syntax.p_subproof list Lplib.Base.pp
val proofsteps : Syntax.p_subproof Lplib.Base.pp
val proofstep : Syntax.p_proofstep Lplib.Base.pp
val proof : (Syntax.p_proof * Syntax.p_proof_end) Lplib.Base.pp
val command : Syntax.p_command Lplib.Base.pp
val ast : Syntax.ast Lplib.Base.pp
val beautify : Syntax.ast -> unit
beautify cmds
pretty-prints the commands cmds
to standard output.