Skip to content

Commit

Permalink
wip TC.declare to give attributes on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Nov 6, 2023
1 parent 169313e commit f2011d5
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion apps/tc/theories/wip.v
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,28 @@ Elpi Accumulate lp:{{
main [trm New, trm Old] :-
add-tc-db _ _ (alias New Old).
}}.
Elpi Typecheck.
Elpi Typecheck.


(*
Elpi Command TC.declare.
Elpi Accumulate Db tc.db.
Elpi Accumulate Db tc_options.db.
Elpi Accumulate File base.
Elpi Accumulate File tc_aux.
Elpi Accumulate File create_tc_predicate.
Elpi Accumulate lp:{{
main [indt-decl D] :-
attributes A,
coq.say A,
Opts =>
get-option "modes" [tt,ff,tt],
coq.env.add-indt D I,
coq.say I.
}}.
Elpi Typecheck.
Elpi Export TC.declare.
#[mode(i,i,o)] TC.declare
Class foo (A : Type) .
*)

0 comments on commit f2011d5

Please sign in to comment.