unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Adam Kandur via Guix-patches via <guix-patches@gnu.org>
To: 44599@debbugs.gnu.org
Subject: [bug#44599] [PATCH] gnu: Add emacs-parsec.
Date: Thu, 12 Nov 2020 23:14:49 +0100 (CET)	[thread overview]
Message-ID: <MLyWc9q--7-2@tuta.io> (raw)

[-- Attachment #1: Type: text/plain, Size: 2 bytes --]




[-- Attachment #2: 0001-gnu-Add-emacs-parsec.patch --]
[-- Type: text/x-patch, Size: 1959 bytes --]

From bd90a0760ac850adc3f06e6ef12ef5ca991115f2 Mon Sep 17 00:00:00 2001
From: Adam <rndd@tuta.io>
Date: Fri, 13 Nov 2020 01:12:53 +0300
Subject: [PATCH] gnu: Add emacs-parsec.

* gnu/packages/emacs-xyz.scm (emacs-parsec): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2704292..ec3d67b 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -23946,6 +23946,31 @@ It supports several input and output formats, all powered by the
 same shift-reduce parser function.")
     (license license:gpl3+)))
 
+(define-public emacs-parsec
+  (let ((revision "0")
+        (commit "2cbbbc2254aa7bcaa4fb5e07c8c1bf2f381dba26"))
+    ;; no taged branch
+    (package
+      (name "emacs-parsec")
+      (build-system emacs-build-system)
+      (version (git-version "0.1.3" revision commit))
+      (source
+       (origin
+	 (method git-fetch)
+	 (uri (git-reference
+	       (url "https://github.com/cute-jumper/parsec.el")
+	       (commit commit)))
+	 (file-name (git-file-name name version))
+	 (sha256
+          (base32 "1g1s8s45g3kkbi3h7w0pmadmzdswb64mkdvdpg2lihg341kx37gm"))))
+      (home-page "https://github.com/cute-jumper/parsec.el")
+      (synopsis "A parser combinator library for Emacs Lisp, similar to Haskell's Parsec library.")
+      (description "This library, however, contains most of the parser combinators in Text.Parsec.Combinator, 
+which should be enough in most use cases. Of course more combinators can be added if necessary! 
+Most of the parser combinators have the same behavior as their Haskell counterparts. 
+@code{parsec} also comes with a simple error handling mechanism so that it can display an error message showing how the parser fails.")
+      (license license:gpl3))))
+
 (define-public emacs-hide-mode-line
   (package
     (name "emacs-hide-mode-line")
-- 
2.28.0


             reply	other threads:[~2020-11-12 22:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-12 22:14 Adam Kandur via Guix-patches via [this message]
2020-11-14 20:14 ` [bug#44599] [PATCH] gnu: Add emacs-parsec Nicolas Goaziou
2020-11-15  9:02   ` Adam Kandur via Guix-patches via
2020-11-15 21:26     ` bug#44599: " Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MLyWc9q--7-2@tuta.io \
    --to=guix-patches@gnu.org \
    --cc=44599@debbugs.gnu.org \
    --cc=rndd@tuta.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).