-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
56 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ nra.cache | |
Parser.v | ||
Makefile.coq* | ||
*~ | ||
_build/ |
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 |
---|---|---|
@@ -1,24 +1,17 @@ | ||
COQMAKEFILE ?= Makefile.coq | ||
MENHIR ?= menhir | ||
MENHIRFLAGS ?= --coq | ||
TEMPLATES ?= ../templates | ||
TARGETS = .github/workflows/docker-action.yml coq-json.opam dune-project README.md | ||
|
||
ifneq ($(MAKECMDGOALS),clean) | ||
-include $(COQMAKEFILE) | ||
endif | ||
all: | ||
dune build | ||
|
||
$(COQMAKEFILE): _CoqProject | ||
$(COQBIN)coq_makefile -f $^ -o $@ | ||
test: all | ||
dune test | ||
|
||
.PHONY: clean test | ||
clean:: | ||
@ rm -f `cat .gitignore` | ||
|
||
Parser.v: Parser.vy | ||
$(MENHIR) $(MENHIRFLAGS) $< | ||
|
||
test: | ||
$(MAKE) -C test | ||
meta: | ||
$(TEMPLATES)/generate.sh $(TARGETS) | ||
|
||
publish%: | ||
opam publish --packages-directory=released/packages \ | ||
--repo=coq/opam --tag=v$* -v $* liyishuai/coq-json | ||
|
||
.PHONY: all test meta publish |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
(lang dune 3.6) | ||
(using coq 0.6) | ||
(name coq-json) |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
(alias | ||
(name runtest) | ||
(deps | ||
(package coq-json) | ||
(alias_rec all))) | ||
|
||
(rule | ||
(alias runtest) | ||
(action | ||
(run coqc %{dep:TestDecode.v}))) | ||
|
||
(rule | ||
(alias runtest) | ||
(action | ||
(run coqc %{dep:TestParse.v}))) | ||
|
||
(rule | ||
(alias runtest) | ||
(action | ||
(run coqc %{dep:TestPrint.v}))) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,11 @@ | ||
(coq.theory | ||
(name JSON) | ||
(package coq-json) | ||
(synopsis "JSON in Coq") | ||
(flags -w -deprecated-syntactic-definition)) | ||
|
||
(rule | ||
(target Parser.v) | ||
(deps Parser.vy) | ||
(action | ||
(run menhir --coq %{deps}))) | ||
This comment has been minimized.
Sorry, something went wrong. |
@liyishuai Could you please add option
--coq-no-version-check
here, otherwise this won't work in Coq CI. See https://github.com/coq/coq/blob/master/dev/ci/ci-json.sh