-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from LPCIC/dump-glob
Dump glob info for coq.env.add/begin/end-*
- Loading branch information
Showing
8 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,6 @@ Makefile.coq.conf | |
Makefile.*.coq | ||
Makefile.*.coq.conf | ||
|
||
tests/test_glob/*.css | ||
|
||
META |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From elpi Require Import elpi. | ||
|
||
Definition d1 := 3. | ||
Inductive i1 : Prop := k1. | ||
Record r1 : Type := { f1 : nat; _ : f1 = 1 }. | ||
Section A. Variable v : nat. End A. | ||
Module N1. End N1. Module M1 := N1. | ||
|
||
Elpi Command test. | ||
Elpi Accumulate lp:{{ | ||
main _ :- | ||
coq.env.add-const "d2" {{ 3 }} _ _ _, | ||
coq.env.add-indt (inductive "i2" tt (arity {{ Prop }}) i\[constructor "k2" (arity i) ]) _, | ||
coq.env.add-indt (record "r2" {{ Type }} "_" ( | ||
field _ "f2" {{ nat }} f2\ | ||
field _ _ {{ @eq nat lp:f2 1 }} _\ | ||
end-record)) _, | ||
coq.env.begin-section "A", | ||
coq.env.add-section-variable "v" {{ nat }} _, | ||
coq.env.end-section, | ||
coq.env.begin-module "N2" none, | ||
coq.env.end-module _, | ||
true. | ||
}}. | ||
Elpi Typecheck. | ||
Elpi Export test. | ||
test. | ||
Check d1. Check d2. | ||
Check i1. Check i2. | ||
Check k1. Check k2. | ||
Check r1. Check r2. | ||
Check f1. Check f2. | ||
Module M2 := N2. |