aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing/entry.mli
blob: 4c73fe2049f5b7298dd65502fb9c96c56461f92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

(** Typed grammar entries *)

type 'a t
(** Typed grammar entries. We need to defined them here so that they are
    marshallable and defined before the Pcoq.Gram module. They are basically
    unique names. They should be kept synchronized with the {!Pcoq} entries. *)

val create : string -> 'a t
(** Create an entry. They should be synchronized with the entries defined in
    {!Pcoq}. *)

(** {5 Meta-programming} *)

val repr : 'a t -> string
val unsafe_of_name : string -> 'a t