Skip to content

Commit 2bf2293

Browse files
committed
name main rule
1 parent c24ca1c commit 2bf2293

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

structures.v

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ Elpi Accumulate Db hb.db.
249249
#[only="8.15.*"] Elpi Accumulate File "HB/common/compat_815.elpi".
250250
Elpi Accumulate lp:{{
251251

252+
:name "start"
252253
main [str S] :- !,
253254
if (decl-location {coq.locate S} Loc)
254255
(coq.say "HB: synthesized in file" Loc)
@@ -284,6 +285,7 @@ Elpi Accumulate File "HB/about.elpi".
284285
Elpi Accumulate Db hb.db.
285286
Elpi Accumulate lp:{{
286287

288+
:name "start"
287289
main [str S] :- !, with-attributes (with-logging (about.main S)).
288290

289291
main _ :- coq.error "Usage: HB.about <name>.".
@@ -318,6 +320,7 @@ Elpi Accumulate File "HB/howto.elpi".
318320
Elpi Accumulate Db hb.db.
319321
Elpi Accumulate lp:{{
320322

323+
:name "start"
321324
main [trm T, str STgt] :- !,
322325
with-attributes (with-logging (howto.main-trm T STgt none)).
323326
main [trm T, str STgt, int Depth] :- !,
@@ -357,6 +360,7 @@ Elpi Accumulate File "HB/status.elpi".
357360
Elpi Accumulate Db hb.db.
358361
Elpi Accumulate lp:{{
359362

363+
:name "start"
360364
main [] :- !, status.print-hierarchy.
361365

362366
main _ :- coq.error "Usage: HB.status.".
@@ -386,6 +390,7 @@ Elpi Accumulate File "HB/graph.elpi".
386390
Elpi Accumulate Db hb.db.
387391
Elpi Accumulate lp:{{
388392

393+
:name "start"
389394
main [str File] :- with-attributes (with-logging (graph.to-file File)).
390395
main _ :- coq.error "Usage: HB.graph <filename>.".
391396

@@ -439,6 +444,7 @@ Elpi Accumulate File "HB/factory.elpi".
439444
Elpi Accumulate Db hb.db.
440445
Elpi Accumulate lp:{{
441446

447+
:name "start"
442448
main [A] :- A = indt-decl _, !,
443449
with-attributes (with-logging (factory.declare-mixin A)).
444450

@@ -496,6 +502,7 @@ Elpi Accumulate File "HB/common/synthesis.elpi".
496502
Elpi Accumulate File "HB/pack.elpi".
497503
Elpi Accumulate lp:{{
498504

505+
:name "start"
499506
solve (goal _ _ S _ [trm Ty | Args] as G) GLS :- with-attributes (with-logging (std.do! [
500507
pack.main Ty Args InstanceSkel,
501508
std.assert-ok! (coq.elaborate-skeleton InstanceSkel S Instance) "HB.pack_for: the instance does not solve the goal",
@@ -518,6 +525,7 @@ Elpi Accumulate File "HB/common/synthesis.elpi".
518525
Elpi Accumulate File "HB/pack.elpi".
519526
Elpi Accumulate lp:{{
520527

528+
:name "start"
521529
solve (goal _ _ Ty _ Args as G) GLS :- with-attributes (with-logging (std.do! [
522530
pack.main Ty Args InstanceSkel,
523531
std.assert-ok! (coq.elaborate-skeleton InstanceSkel Ty Instance) "HB.pack: the instance does not solve the goal",
@@ -607,6 +615,7 @@ Elpi Accumulate File "HB/structure.elpi".
607615
Elpi Accumulate Db hb.db.
608616
Elpi Accumulate lp:{{
609617

618+
:name "start"
610619
main [const-decl N (some B) Arity] :- !, std.do! [
611620
prod-last {coq.arity->term Arity} Ty,
612621
if (ground_term Ty) (Sort = Ty) (Sort = {{Type}}), sort Univ = Sort,
@@ -657,6 +666,7 @@ Elpi Accumulate File "HB/instance.elpi".
657666
Elpi Accumulate Db hb.db.
658667
Elpi Accumulate lp:{{
659668

669+
:name "start"
660670
main [const-decl Name (some BodySkel) TyWPSkel] :- !,
661671
with-attributes (with-logging (instance.declare-const Name BodySkel TyWPSkel _)).
662672
main [T0, F0] :- !,
@@ -690,6 +700,8 @@ Elpi Accumulate File "HB/export.elpi".
690700
Elpi Accumulate File "HB/factory.elpi".
691701
Elpi Accumulate Db hb.db.
692702
Elpi Accumulate lp:{{
703+
704+
:name "start"
693705
main [A] :- (A = indt-decl _ ; A = const-decl _ _ _), !,
694706
with-attributes (with-logging (factory.declare A)).
695707

@@ -751,9 +763,12 @@ Elpi Accumulate File "HB/factory.elpi".
751763
Elpi Accumulate File "HB/builders.elpi".
752764
Elpi Accumulate Db hb.db.
753765
Elpi Accumulate lp:{{
766+
767+
:name "start"
754768
main [ctx-decl C] :- !, with-attributes (with-logging (builders.begin C)).
755769

756770
main _ :- coq.error "Usage: HB.builders Context A (f : F1 A).".
771+
757772
}}.
758773
Elpi Typecheck.
759774
Elpi Export HB.builders.
@@ -773,8 +788,11 @@ Elpi Accumulate File "HB/export.elpi".
773788
Elpi Accumulate File "HB/builders.elpi".
774789
Elpi Accumulate Db hb.db.
775790
Elpi Accumulate lp:{{
791+
792+
:name "start"
776793
main [] :- !, with-attributes (with-logging builders.end).
777794
main _ :- coq.error "Usage: HB.end.".
795+
778796
}}.
779797
Elpi Typecheck.
780798
Elpi Export HB.end.
@@ -821,8 +839,11 @@ Elpi Accumulate File "HB/common/log.elpi".
821839
Elpi Accumulate File "HB/export.elpi".
822840
Elpi Accumulate Db hb.db.
823841
Elpi Accumulate lp:{{
842+
843+
:name "start"
824844
main [str M] :- !, with-attributes (with-logging (export.any M)).
825845
main _ :- coq.error "Usage: HB.export M.".
846+
826847
}}.
827848
Elpi Typecheck.
828849
Elpi Export HB.export.
@@ -847,9 +868,12 @@ Elpi Accumulate File "HB/common/log.elpi".
847868
Elpi Accumulate File "HB/export.elpi".
848869
Elpi Accumulate Db hb.db.
849870
Elpi Accumulate lp:{{
871+
872+
:name "start"
850873
main [] :- !, with-attributes (with-logging (export.reexport-all-modules-and-CS none)).
851874
main [str M] :- !, with-attributes (with-logging (export.reexport-all-modules-and-CS (some M))).
852875
main _ :- coq.error "Usage: HB.reexport.".
876+
853877
}}.
854878
Elpi Typecheck.
855879
Elpi Export HB.reexport.
@@ -893,9 +917,12 @@ Elpi Accumulate File "HB/common/log.elpi".
893917
Elpi Accumulate File "HB/lock.elpi".
894918
Elpi Accumulate Db hb.db.
895919
Elpi Accumulate lp:{{
920+
921+
:name "start"
896922
main [const-decl Name (some BoSkel) TySkel] :- !,
897923
with-attributes (with-logging (lock.lock-def Name TySkel BoSkel)).
898924
main _ :- coq.error "Usage: HB.lock Definition name : ty := t.".
925+
899926
}}.
900927
Elpi Typecheck.
901928
Elpi Export HB.lock.
@@ -948,6 +975,7 @@ Elpi Accumulate File "HB/factory.elpi".
948975
Elpi Accumulate Db hb.db.
949976
Elpi Accumulate lp:{{
950977

978+
:name "start"
951979
main [Ctx] :- Ctx = ctx-decl _, !,
952980
with-attributes (with-logging (
953981
factory.argument->w-mixins Ctx (pr FLwP _),
@@ -976,6 +1004,8 @@ Elpi Accumulate File "HB/common/database.elpi".
9761004
Elpi Accumulate File "HB/common/utils.elpi".
9771005
Elpi Accumulate File "HB/common/log.elpi".
9781006
Elpi Accumulate lp:{{
1007+
1008+
:name "start"
9791009
main [trm Skel] :- !, with-attributes (with-logging (check-or-not Skel)).
9801010
main _ :- coq.error "usage: HB.check (term).".
9811011

0 commit comments

Comments
 (0)