| •1 |
(lang dune 3.24) |
| 2 |
(using rocq 0.14) |
| 3 |
(name rocq-elpi) |
| 4 |
;(generate_opam_files) |
| 5 |
|
| 6 |
(source (github LPCIC/coq-elpi)) |
| 7 |
(license LGPL-2.1-or-later) |
| 8 |
(authors "Enrico Tassi <[email protected]>") |
| 9 |
(maintainers "Enrico Tassi <[email protected]>") |
| 10 |
|
| 11 |
(package |
| 12 |
(name rocq-elpi) |
| 13 |
(synopsis "Elpi extension language for Coq") |
| 14 |
(description |
| 15 |
"Coq-elpi provides a Coq plugin that embeds ELPI. It also provides \ |
| 16 |
a way to embed Coq's terms into λProlog using the Higher-Order \ |
| 17 |
Abstract Syntax approach and a way to read terms back. In addition \ |
| 18 |
to that it exports to ELPI a set of Coq's primitives, e.g. printing \ |
| 19 |
a message, accessing the environment of theorems and data types, \ |
| 20 |
defining a new constant and so on. For convenience it also provides \ |
| 21 |
a quotation and anti-quotation for Coq's syntax in λProlog. E.g., \ |
| 22 |
`{{nat}}` is expanded to the type name of natural numbers, or \ |
| 23 |
`{{A -> B}}` to the representation of a product by unfolding the \ |
| 24 |
`->` notation. Finally it provides a way to define new vernacular \ |
| 25 |
commands and new tactics.") |
| 26 |
(tags |
| 27 |
("category:Miscellaneous/Coq Extensions" |
| 28 |
"keyword:λProlog" |
| 29 |
"keyword:higher order abstract syntax" |
| 30 |
"logpath:elpi")) |
| 31 |
(depends |
| 32 |
(ocaml (>= 4.10.0)) |
| 33 |
(elpi (and (>= 3.0) (< 3.2.0~))) |
| 34 |
; (rocq-core (and (>= 9.0+rc1) (< 9.2~))) |
| 35 |
ppx_optcomp |
| 36 |
(ocaml-lsp-server :with-dev-setup))) |
| 37 |
|
| 38 |
(package |
| 39 |
(name rocq-elpi-json) |
| 40 |
(synopsis "Yojson bindings for rocq-elpi") |
| 41 |
(description "This package provides basic support for reading and writing json files from Elpi programs running in Rocq") |
| 42 |
(depends rocq-elpi yojson)) |
| 43 |
|
| 44 |
(package |
| 45 |
(name rocq-elpi-xml) |
| 46 |
(synopsis "Xml-light bindings for rocq-elpi") |
| 47 |
(description "DThis package provides basic support for reading xml files from Elpi programs running in Rocq") |
| 48 |
(depends rocq-elpi yojson)) |
| 49 |
|
| 50 |
(package |
| 51 |
(name rocq-elpi-tests) |
| 52 |
(synopsis "Technical package to run tests") |
| 53 |
(description "Do not install") |
| 54 |
(depends rocq-elpi)) |
| 55 |
|
| 56 |
(package |
| 57 |
(name rocq-elpi-json-tests) |
| 58 |
(synopsis "Technical package to run tests") |
| 59 |
(description "Do not install") |
| 60 |
(depends rocq-elpi)) |
| 61 |
|
| 62 |
(package |
| 63 |
(name rocq-elpi-xml-tests) |
| 64 |
(synopsis "Technical package to run tests") |
| 65 |
(description "Do not install") |
| 66 |
(depends rocq-elpi)) |
| 67 |
|
| 68 |
(package |
| 69 |
(name rocq-elpi-tests-stdlib) |
| 70 |
(synopsis "Technical package to run tests depending on Stdlib") |
| 71 |
(description "Do not install") |
| 72 |
(depends rocq-elpi rocq-stdlib)) |
| 73 |
|
| 74 |
(package |
| 75 |
(name coq-elpi) |
| 76 |
(allow_empty) |
| 77 |
(depends |
| 78 |
coq-core |
| 79 |
(rocq-elpi (= :version))) |
| 80 |
(synopsis "Compatibility metapackage for Elpi extension language after the Rocq renaming")) |