aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2022-06-30 17:55:49 +0200
committerPierre Neidhardt <mail@ambrevar.xyz>2022-06-30 20:01:37 +0200
commitefe2efd72a465d8c966c0e49502fbdd3ae391674 (patch)
tree286cef6abd5acc911fe4733ffb0a845e2ffa6282 /gnu/packages
parent3c509d98eddeb205636a5f8c88ac83b08e43934a (diff)
downloadguix-efe2efd72a465d8c966c0e49502fbdd3ae391674.tar.gz
guix-efe2efd72a465d8c966c0e49502fbdd3ae391674.zip
gnu: Add parseq.
* gnu/packages/lisp-xyz.scm (cl-parseq, ecl-parseq, sbcl-parseq): New variables.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/lisp-xyz.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 6edbbeb7be..a9fd0ef889 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22082,3 +22082,43 @@ definition.")
(define-public ecl-slot-extra-options
(sbcl-package->ecl-package sbcl-slot-extra-options))
+
+(define-public sbcl-parseq
+ (package
+ (name "sbcl-parseq")
+ (version "0.5.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mrossini-ethz/parseq")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name "cl-parseq" version))
+ (sha256
+ (base32 "0b4lnhwqdlaqccanyssdj2v0am2ygw6qr4543b49kz2rwirykw0w"))))
+ (build-system asdf-build-system/sbcl)
+ (home-page "https://github.com/mrossini-ethz/parseq")
+ (synopsis "Parsing expression grammars for sequences")
+ (description
+ "Parseq (pronounced parsec) is a parsing library for common lisp. It can
+be used for parsing lisp's sequences types: strings, vectors (e.g. binary
+data) and lists. Furthermore, parseq is able to parse nested structures such
+as trees (e.g. lists of lists, lists of vectors, vectors of strings).
+
+Parseq uses parsing expression grammars (PEG) that can be defined through a
+simple interface. Extensions to the standard parsing expressions are
+available. Parsing expressions can be parameterised and made context
+aware. Additionally, the definition of each parsing expression allows the
+arbitrary transformation of the parsing tree.
+
+The library is inspired by Esrap and uses a very similar interface. No code
+is shared between the two projects, however. The features of Esrap are are
+mostly included in parseq and complemented with additional, orthogonal
+features. Any resemblance to esrap-liquid is merely coincidental.")
+ (license license:gpl2)))
+
+(define-public cl-parseq
+ (sbcl-package->cl-source-package sbcl-parseq))
+
+(define-public ecl-parseq
+ (sbcl-package->ecl-package sbcl-parseq))