-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is configured using a new [vos] mode, that can be configured in the [coq.theory] stanza. Signed-off-by: Rodolphe Lepigre <rodolphe@bedrocksystems.com>
- Loading branch information
Showing
16 changed files
with
134 additions
and
11 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
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
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
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,3 @@ | ||
From basic Require Import foo. | ||
|
||
Definition mynum (i : mynat) := 3. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(coq.theory | ||
(name basic) | ||
(package base) | ||
(modules :standard) | ||
(mode vos) | ||
(synopsis "Test Coq library")) | ||
|
||
(rule | ||
(alias default) | ||
(action (echo "%{read:base.install}"))) |
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,2 @@ | ||
(lang dune 3.8) | ||
(using coq 0.8) |
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,10 @@ | ||
(coq.theory | ||
(name basic) | ||
(package base) | ||
(modules :standard) | ||
(mode vo) | ||
(synopsis "Test Coq library")) | ||
|
||
(rule | ||
(alias default) | ||
(action (echo "%{read:base.install}"))) |
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 @@ | ||
Definition mynat := nat. |
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,51 @@ | ||
$ dune build --display short foo.vos | ||
coqdep .basic.theory.d | ||
coqc foo.vos | ||
|
||
$ dune clean | ||
$ dune build --display short bar.vos | ||
coqdep .basic.theory.d | ||
coqc foo.vos | ||
coqc bar.vos | ||
|
||
$ cat foo.v | dune coq top -- foo.v 2>/dev/null | sed '/^Welcome to Coq/d' | ||
mynat is defined | ||
$ cat bar.v | dune coq top -- bar.v 2>/dev/null | sed '/^Welcome to Coq/d' | ||
mynum is defined | ||
|
||
$ dune clean | ||
$ dune build --display short --debug-dependency-path @all | ||
coqdep .basic.theory.d | ||
coqc foo.vos | ||
coqc bar.vos | ||
$ dune build --debug-dependency-path @default | ||
lib: [ | ||
"_build/install/default/lib/base/META" | ||
"_build/install/default/lib/base/dune-package" | ||
"_build/install/default/lib/base/opam" | ||
] | ||
lib_root: [ | ||
"_build/install/default/lib/coq/user-contrib/basic/bar.v" {"coq/user-contrib/basic/bar.v"} | ||
"_build/install/default/lib/coq/user-contrib/basic/bar.vos" {"coq/user-contrib/basic/bar.vos"} | ||
"_build/install/default/lib/coq/user-contrib/basic/foo.v" {"coq/user-contrib/basic/foo.v"} | ||
"_build/install/default/lib/coq/user-contrib/basic/foo.vos" {"coq/user-contrib/basic/foo.vos"} | ||
] | ||
|
||
Checking that we can go back to vo mode (without cleaning). | ||
|
||
$ mv dune-vo dune | ||
$ dune build --display short --debug-dependency-path @all | ||
coqc foo.{glob,vo} | ||
coqc bar.{glob,vo} | ||
$ dune build --debug-dependency-path @default | ||
lib: [ | ||
"_build/install/default/lib/base/META" | ||
"_build/install/default/lib/base/dune-package" | ||
"_build/install/default/lib/base/opam" | ||
] | ||
lib_root: [ | ||
"_build/install/default/lib/coq/user-contrib/basic/bar.v" {"coq/user-contrib/basic/bar.v"} | ||
"_build/install/default/lib/coq/user-contrib/basic/bar.vo" {"coq/user-contrib/basic/bar.vo"} | ||
"_build/install/default/lib/coq/user-contrib/basic/foo.v" {"coq/user-contrib/basic/foo.v"} | ||
"_build/install/default/lib/coq/user-contrib/basic/foo.vo" {"coq/user-contrib/basic/foo.vo"} | ||
] |