@@ -225,6 +225,7 @@ let hintdef d =
225225 | TypH (x1 , x2 , hs ) -> typid x1; ruleid x2; hints hs
226226 | GramH (x1 , x2 , hs ) -> gramid x1; ruleid x2; hints hs
227227 | RelH (x , hs ) -> relid x; hints hs
228+ | RuleH (x1 , x2 , hs ) -> relid x1; ruleid x2; hints hs
228229 | VarH (x , hs ) -> varid x; hints hs
229230 | DecH (x , hs ) -> defid x; hints hs
230231
@@ -237,7 +238,7 @@ let def d =
237238 | VarD (x , t , hs ) -> varid x; typ t; hints hs
238239 | SepD -> ()
239240 | RelD (x , ps , t , hs ) -> relid x; params ps; typ t; hints hs
240- | RuleD (x1 , ps , x2 , e , prs ) -> relid x1; params ps; ruleid x2; exp e; prems prs
241+ | RuleD (x1 , ps , x2 , e , prs , hs ) -> relid x1; params ps; ruleid x2; exp e; prems prs; hints hs
241242 | DecD (x , ps , t , hs ) -> defid x; params ps; typ t; hints hs
242243 | DefD (x , as_ , e , prs ) -> defid x; args as_; exp e; prems prs
243244 | HintD hd -> hintdef hd
@@ -389,6 +390,7 @@ let clone_hintdef d =
389390 | TypH (x1 , x2 , hs ) -> TypH (x1, x2, List. map clone_hint hs)
390391 | GramH (x1 , x2 , hs ) -> GramH (x1, x2, List. map clone_hint hs)
391392 | RelH (x , hs ) -> RelH (x, List. map clone_hint hs)
393+ | RuleH (x1 , x2 , hs ) -> RuleH (x1, x2, List. map clone_hint hs)
392394 | VarH (x , hs ) -> VarH (x, List. map clone_hint hs)
393395 | DecH (x , hs ) -> DecH (x, List. map clone_hint hs)
394396 ) $ d.at
@@ -401,7 +403,7 @@ let clone_def d =
401403 | VarD (x , t , hs ) -> VarD (x, clone_typ t, List. map clone_hint hs)
402404 | SepD -> SepD
403405 | RelD (x , ps , t , hs ) -> RelD (x, List. map clone_param ps, clone_typ t, List. map clone_hint hs)
404- | RuleD (x1 , ps , x2 , e , prs ) -> RuleD (x1, List. map clone_param ps, x2, clone_exp e, Convert. map_nl_list clone_prem prs)
406+ | RuleD (x1 , ps , x2 , e , prs , hs ) -> RuleD (x1, List. map clone_param ps, x2, clone_exp e, Convert. map_nl_list clone_prem prs, List. map clone_hint hs )
405407 | DecD (x , ps , t , hs ) -> DecD (x, List. map clone_param ps, clone_typ t, List. map clone_hint hs)
406408 | DefD (x , as_ , e , prs ) -> DefD (x, List. map clone_arg as_, clone_exp e, Convert. map_nl_list clone_prem prs)
407409 | HintD hd -> HintD (clone_hintdef hd)
0 commit comments