aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSören Tempel <soeren@soeren-tempel.net>2024-02-03 16:12:00 +0100
committerJulien Lepiller <julien@lepiller.eu>2024-02-11 17:30:22 +0100
commit4221b50acbabdce24b888136e7c7e33573ce2838 (patch)
treef8f1dca8267c0b4978b7d49d0179ad6adcb80e55 /gnu/packages
parentad2c1833a01394acf899818c75e987d758e28f79 (diff)
downloadguix-4221b50acbabdce24b888136e7c7e33573ce2838.tar.gz
guix-4221b50acbabdce24b888136e7c7e33573ce2838.zip
gnu: Add ocaml-grain-dypgen.
* gnu/packages/ocaml.scm (ocaml-grain-dypgen): New variable. Signed-off-by: Julien Lepiller <julien@lepiller.eu> Change-Id: I9804cb17863c112d57f0f93b414e568707dae88d
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/ocaml.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3a8c93cd9b..07d8f21156 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2371,6 +2371,40 @@ it provides a parser, a serializer, and a pretty printer.")
(home-page "https://github.com/ocaml-toml/To.ml")
(license license:expat)))
+(define-public ocaml-grain-dypgen
+ (package
+ (name "ocaml-grain-dypgen")
+ (version "0.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/grain-lang/dypgen")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jyxkvi75nchk5kmhqixmjy70z55gmlqa83pxn0hsv2qxvyqxavw"))))
+ (build-system ocaml-build-system)
+ (arguments
+ (list
+ ;; Upstream does not have a test suite.
+ #:tests? #f
+ #:make-flags #~(let ((out #$output))
+ (list (string-append "OCAMLLIBDIR=" out
+ "/lib/ocaml/site-lib")
+ (string-append "BINDIR=" out "/bin")
+ (string-append "MANDIR=" out "/share/man")))
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure))))
+ (properties `((upstream-name . "grain_dypgen")))
+ (home-page "https://github.com/grain-lang/dypgen")
+ (synopsis "Self-extensible parsers and lexers for OCaml")
+ (description
+ "This package provides a @acronym{GLR, generalized LR} parser generator
+for OCaml. It is able to generate self-extensible parsers (also called
+adaptive parsers) as well as extensible lexers for the parsers it produces.")
+ (license license:cecill-b)))
+
(define-public ocaml-topkg
(package
(name "ocaml-topkg")