From 8f118b444db7693dcc16dda4c271d2528bfa949a Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Wed, 24 Sep 2014 17:37:10 +0200 Subject: Notation: option to attach extra pretty printing rules to notations so that one can retrieve them and pass them to third party tools (i.e. print the AST with the notations attached to the nodes concerned). Available syntax: - all in one: Notation "a /\ b" := ... (format "...", format "latex" "#1 \wedge #2"). - a posteriori: Format Notation "a /\ b" "latex" "#1 \wedge #2". --- intf/vernacexpr.mli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'intf') diff --git a/intf/vernacexpr.mli b/intf/vernacexpr.mli index e670f68c21..2c73a974b5 100644 --- a/intf/vernacexpr.mli +++ b/intf/vernacexpr.mli @@ -206,7 +206,7 @@ type syntax_modifier = | SetAssoc of Extend.gram_assoc | SetEntryType of string * Extend.simple_constr_prod_entry_key | SetOnlyParsing of Flags.compat_version - | SetFormat of string located + | SetFormat of string * string located type proof_end = | Admitted @@ -290,6 +290,7 @@ type vernac_expr = | VernacNotation of obsolete_locality * constr_expr * (lstring * syntax_modifier list) * scope_name option + | VernacNotationAddFormat of string * string * string (* Gallina *) | VernacDefinition of -- cgit v1.2.3