package rocq-runtime

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

Module Ltac2_plugin.Tac2printSource

Prints the shortest name for the constant. Also works for constants not in the nametab (because they're local to another module).

Printing types
Sourcetype typ_level =
  1. | T5_l
  2. | T5_r
  3. | T2
  4. | T1
  5. | T0
Sourceval pr_glbtype_gen : ('a -> string) -> typ_level -> 'a Tac2expr.glb_typexpr -> Pp.t
Sourceval pr_glbtype : ('a -> string) -> 'a Tac2expr.glb_typexpr -> Pp.t
Printing expressions
Sourceval pr_constructor : Tac2expr.ltac_constructor -> Pp.t
Sourceval pr_internal_constructor : Tac2expr.type_constant -> int -> bool -> Pp.t
Sourceval pr_projection : Tac2expr.ltac_projection -> Pp.t
Sourceval pr_glbexpr : avoid:Names.Id.Set.t -> Tac2expr.glb_tacexpr -> Pp.t
Sourceval pr_partial_pat : Tac2expr.PartialPat.t -> Pp.t
Sourceval partial_pat_of_glb_pat : Tac2expr.glb_pat -> Tac2expr.PartialPat.t

Utility function

Printing values
Sourcetype val_printer = {
  1. val_printer : 'a. Environ.env -> Evd.evar_map -> Tac2val.valexpr -> 'a Tac2expr.glb_typexpr list -> Pp.t;
}
Sourceval register_val_printer : Tac2expr.type_constant -> val_printer -> unit
Utilities
Sourceval int_name : unit -> int -> string

Create a function that give names to integers. The names are generated on the fly, in the order they are encountered.

Ltac2 primitives
Sourcetype format =
  1. | FmtString
  2. | FmtInt
  3. | FmtConstr
  4. | FmtIdent
  5. | FmtLiteral of string
  6. | FmtAlpha
Sourceval val_format : format list Tac2dyn.Val.tag
Sourceexception InvalidFormat
Sourceval parse_format : string -> format list
OCaml

Innovation. Community. Security.