projects/guix·commit e4815819

gnu: ocaml5: Add ocaml-earley.

e4815819 · Jason Conroy <[email protected]> · 2026-06-21 09:43:23 -04:00

* gnu/packages/ocaml5.scm (ocaml-earley): New variable.

Change-Id: Ie8fc194c1e786e50af15db142658dd51e2f12aa9
Signed-off-by: Julien Lepiller <[email protected]>
Commit
e481581905eb74bf4d78967e9c227bbc97853725
Parents
acd9f767

Changes

1 files changed · +24 −0

FileStatusAddDelContent
gnu/packages/ocaml5.scmmodified+24−0View file

gnu/packages/ocaml5.scm

View file
diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index b43c5fb..0ccac96 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -2108,6 +2108,30 @@ Knuth’s LR(1) parser construction technique.")
;; are QPL licensed.
(license (list license:gpl2+ license:qpl))))
+(define-public ocaml-earley
+ (package
+ (name "ocaml5-earley")
+ (version "3.0.0")
+ (home-page "https://github.com/rlepigre/ocaml-earley")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1vi58zdxchpw6ai0bz9h2ggcmg8kv57yk6qbx82lh47s5wb3mz5y"))))
+ (build-system dune-build-system)
+ (propagated-inputs (list ocaml-stdlib-shims))
+ (synopsis "Parsing library based on Earley Algorithm")
+ (description
+ "Earley is a parser combinator library base on Earley's
+algorithm. It is intended to be used in conjunction with an OCaml syntax
+extension which allows the definition of parsers inside the language. There
+is also support for writing OCaml syntax extensions in a camlp4 style.")
+ (license license:cecill-b)))
+
(define-public ocaml-monolith
(package
(name "ocaml5-monolith")