this repo has no description
1opam-version: "2.0"
2maintainer: "Enrico Tassi <enrico.tassi@inria.fr>"
3authors: [ "Claudio Sacerdoti Coen" "Enrico Tassi" ]
4license: "LGPL-2.1-or-later"
5homepage: "https://github.com/LPCIC/elpi"
6doc: "https://LPCIC.github.io/elpi/"
7dev-repo: "git+https://github.com/LPCIC/elpi.git"
8bug-reports: "https://github.com/LPCIC/elpi/issues"
9
10build: [
11 ["dune" "subst"] {dev}
12 [make "build" "DUNE_OPTS=-p %{name}% -j %{jobs}%"]
13 [make "tests" "DUNE_OPTS=-p %{name}%" "TIMEOUT=900"] {with-test & os != "macos" & os-distribution != "alpine"}
14 [make "fix-elpi.install"]
15]
16
17depends: [
18 "ocaml" {>= "4.04.0"}
19 "camlp5" {<= "7.99"}
20 "ppxlib" {>= "0.12.0" & < "0.36.0"}
21 "ocaml-migrate-parsetree" {>= "1.6.0" & < "2.0.0"}
22 "ppx_deriving"
23 "re" {>= "1.7.2"}
24 "ANSITerminal" {with-test}
25 "cmdliner" {with-test}
26 "dune" {>= "2.2.0"}
27 "conf-time" {with-test}
28]
29synopsis: "ELPI - Embeddable λProlog Interpreter"
30description: """
31ELPI implements a variant of λProlog enriched with Constraint Handling Rules,
32a programming language well suited to manipulate syntax trees with binders.
33
34ELPI is designed to be embedded into larger applications written in OCaml as
35an extension language. It comes with an API to drive the interpreter and
36with an FFI for defining built-in predicates and data types, as well as
37quotations and similar goodies that are handy to adapt the language to the host
38application.
39
40This package provides both a command line interpreter (elpi) and a library to
41be linked in other applications (eg by passing -package elpi to ocamlfind).
42
43The ELPI programming language has the following features:
44
45- Native support for variable binding and substitution, via an Higher Order
46 Abstract Syntax (HOAS) embedding of the object language. The programmer needs
47 not to care about De Bruijn indexes.
48
49- Native support for hypothetical context. When moving under a binder one can
50 attach to the bound variable extra information that is collected when the
51 variable gets out of scope. For example when writing a type-checker the
52 programmer needs not to care about managing the typing context.
53
54- Native support for higher order unification variables, again via HOAS.
55 Unification variables of the meta-language (λProlog) can be reused to
56 represent the unification variables of the object language. The programmer
57 does not need to care about the unification-variable assignment map and
58 cannot assign to a unification variable a term containing variables out of
59 scope, or build a circular assignment.
60
61- Native support for syntactic constraints and their meta-level handling rules.
62 The generative semantics of Prolog can be disabled by turning a goal into a
63 syntactic constraint (suspended goal). A syntactic constraint is resumed as
64 soon as relevant variables gets assigned. Syntactic constraints can be
65 manipulated by constraint handling rules (CHR).
66
67- Native support for backtracking. To ease implementation of search.
68
69- The constraint store is extensible. The host application can declare
70 non-syntactic constraints and use custom constraint solvers to check their
71 consistency.
72
73- Clauses are graftable. The user is free to extend an existing program by
74 inserting/removing clauses, both at runtime (using implication) and at
75 "compilation" time by accumulating files.
76
77ELPI is free software released under the terms of LGPL 2.1 or above."""
78url {
79 src:
80 "https://github.com/LPCIC/elpi/releases/download/v1.11.1/elpi-v1.11.1.tbz"
81 checksum: [
82 "sha256=766f6799da9f0452e005b3e45bb1a89a6a08e6107c71723ab36881adaff1d53d"
83 "sha512=7ffc246ea08980488dd28663d9e40a4f7504745b3fa94bfd948e74698d0cfd88b66504aebc68d14a007fc0696685160ad59078f274a5f3c0d12288892c0a8e4c"
84 ]
85}