aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/metasyntax.ml
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-05-29 11:09:20 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-05-29 11:09:20 +0000
commit51efb80ac1699a27e0003349bb766a430fbaf86a (patch)
tree998cb7e3d62f72b96e67ed90eb0f57c377653763 /toplevel/metasyntax.ml
parent32d372f83a7797244b4e4d4f0d5791145bc615d1 (diff)
Split Egrammar into Egramml and Egramcoq
Two gains: - no Summary in Grammar.cma - get rid of the hack concerning error_invalid_pattern_notation git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15386 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/metasyntax.ml')
-rw-r--r--toplevel/metasyntax.ml9
1 files changed, 5 insertions, 4 deletions
diff --git a/toplevel/metasyntax.ml b/toplevel/metasyntax.ml
index 203d8ba02..e98aa8c26 100644
--- a/toplevel/metasyntax.ml
+++ b/toplevel/metasyntax.ml
@@ -27,7 +27,8 @@ open Glob_term
open Libnames
open Tok
open Lexer
-open Egrammar
+open Egramml
+open Egramcoq
open Notation
open Nameops
@@ -65,7 +66,7 @@ let rec make_tags = function
| [] -> []
let cache_tactic_notation (_,(pa,pp)) =
- Egrammar.extend_grammar (Egrammar.TacticGrammar pa);
+ Egramcoq.extend_grammar (Egramcoq.TacticGrammar pa);
Pptactic.declare_extra_tactic_pprule pp
let subst_tactic_parule subst (key,n,p,(d,tac)) =
@@ -700,7 +701,7 @@ let cache_one_syntax_extension (typs,prec,ntn,gr,pp) =
(* Reserve the notation level *)
Notation.declare_notation_level ntn prec;
(* Declare the parsing rule *)
- Egrammar.extend_grammar (Egrammar.Notation (prec,typs,gr));
+ Egramcoq.extend_grammar (Egramcoq.Notation (prec,typs,gr));
(* Declare the printing rule *)
Notation.declare_notation_printing_rule ntn (pp,fst prec)
@@ -1023,7 +1024,7 @@ let recover_syntax ntn =
try
let prec = Notation.level_of_notation ntn in
let pp_rule,_ = Notation.find_notation_printing_rule ntn in
- let typs,pa_rule = Egrammar.recover_notation_grammar ntn prec in
+ let typs,pa_rule = Egramcoq.recover_notation_grammar ntn prec in
(typs,prec,ntn,pa_rule,pp_rule)
with Not_found ->
raise NoSyntaxRule