]> matita.cs.unibo.it Git - helm.git/commitdiff
grafite parser updated
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Thu, 18 Mar 2021 14:10:29 +0000 (15:10 +0100)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Thu, 18 Mar 2021 14:10:29 +0000 (15:10 +0100)
+ syntax for parameters added to constructors
  as it was done with definitions some time ago

matita/components/grafite_parser/grafiteParser.ml

index b1e3cc73393eee4bf10e2682a278f1c0f6adcb2d..929e68e3ccd2fee83030e70911cb39226295cad0 100644 (file)
@@ -94,7 +94,11 @@ let mk_parser statement lstatus =
   (* {{{ parser initialization *)
 EXTEND
   GLOBAL: term statement;
-  constructor: [ [ name = IDENT; SYMBOL ":"; typ = term -> (name, typ) ] ];
+  constructor: [
+    [ name = IDENT; params = LIST0 protected_binder_vars; SYMBOL ":"; typ = term -> (* FG: params added *)
+      (name, shift_params `Forall params typ)
+    ]
+  ];
   tactic_term: [ [ t = term LEVEL "90" -> t ] ];
   ident_list1: [ [ LPAREN; idents = LIST1 IDENT; RPAREN -> idents ] ];
   nreduction_kind: [