@@ -601,14 +601,6 @@ GEXTEND Gram
601
601
;
602
602
END
603
603
604
- let warn_deprecated_arguments_scope =
605
- CWarnings. create ~name: " deprecated-arguments-scope" ~category: " deprecated"
606
- (fun () -> strbrk " Arguments Scope is deprecated; use Arguments instead" )
607
-
608
- let warn_deprecated_implicit_arguments =
609
- CWarnings. create ~name: " deprecated-implicit-arguments" ~category: " deprecated"
610
- (fun () -> strbrk " Implicit Arguments is deprecated; use Arguments instead" )
611
-
612
604
(* Extensions: implicits, coercions, etc. *)
613
605
GEXTEND Gram
614
606
GLOBAL : gallina_ext instance_name hint_info;
@@ -691,20 +683,6 @@ GEXTEND Gram
691
683
let more_implicits = Option. default [] more_implicits in
692
684
VernacArguments (qid, args, more_implicits, ! slash_position, mods)
693
685
694
-
695
- (* moved there so that camlp5 factors it with the previous rule *)
696
- | IDENT " Arguments" ; IDENT " Scope" ; qid = smart_global;
697
- " [" ; scl = LIST0 [ " _" -> None | sc = IDENT -> Some sc ]; " ]" ->
698
- warn_deprecated_arguments_scope ~loc: ! @ loc () ;
699
- VernacArgumentsScope (qid,scl)
700
-
701
- (* Implicit *)
702
- | IDENT " Implicit" ; IDENT " Arguments" ; qid = smart_global;
703
- pos = LIST0 [ " [" ; l = LIST0 implicit_name; " ]" ->
704
- List. map (fun (id ,b ,f ) -> (ExplByName id,b,f)) l ] ->
705
- warn_deprecated_implicit_arguments ~loc: ! @ loc () ;
706
- VernacDeclareImplicits (qid,pos)
707
-
708
686
| IDENT "Implicit" ; "Type" ; bl = reserv_list ->
709
687
VernacReserve bl
710
688
@@ -734,12 +712,6 @@ GEXTEND Gram
734
712
[`ClearImplicits ; `ClearScopes ]
735
713
] ]
736
714
;
737
- implicit_name:
738
- [ [ " !" ; id = ident -> (id, false , true )
739
- | id = ident -> (id,false ,false )
740
- | "[" ; "!" ; id = ident ; "]" -> (id,true ,true )
741
- | "[" ; id = ident ; "]" -> (id,true , false ) ] ]
742
- ;
743
715
scope:
744
716
[ [ " %" ; key = IDENT -> key ] ]
745
717
;
0 commit comments