aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/metasyntax.mli
blob: 34fbbef84085c509bedf553068e75d826dee1f1b (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-Rocquencourt  &  LRI-CNRS-Orsay              *)
(*   \VV/  *************************************************************)
(*    //   *      This file is distributed under the terms of the      *)
(*         *       GNU Lesser General Public License Version 2.1       *)
(***********************************************************************)

(*i $Id$ i*)

(* Adding grammar and pretty-printing objects in the environment *)

val add_syntax_obj : string -> Coqast.t list -> unit

val add_grammar_obj : string -> Coqast.t list -> unit
val add_token_obj : string -> unit

val add_infix :
  Gramext.g_assoc option -> int -> string -> Coqast.t -> unit
val add_distfix :
  Gramext.g_assoc option -> int -> string -> Coqast.t -> unit

val print_grammar : string -> string -> unit