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