all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gabriel Hondet <gabrielhondet@gmail.com>
To: 33986@debbugs.gnu.org
Subject: [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp.
Date: Thu, 3 Jan 2019 08:26:51 +0100	[thread overview]
Message-ID: <87k1jj8n7n.fsf@gmail.com> (raw)
In-Reply-To: <87lg3z8nc2.fsf@gmail.com>

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

* gnu/packages/ocaml.scm (ocaml-parsexp): New variable.
---
 gnu/packages/ocaml.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index bece14477..7876c69a7 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5130,3 +5130,49 @@ base converters")
 libraries is an industrial strength alternative to OCaml's standard library
 that was developed by Jane Street, the largest industrial user of OCaml.")
 (license license:expat)))
+
+(define-public ocaml-parsexp
+  (package
+    (name "ocaml-parsexp")
+    (version "0.11.0")
+    (home-page "https://github.com/janestreet/parsexp")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url (string-append home-page ".git"))
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
+    (build-system dune-build-system)
+    (inputs
+     `(("ocaml-sexplib0" ,ocaml-sexplib0)))
+    (synopsis "S-expression parsing library")
+    (description
+     "This library provides generic parsers for parsing S-expressions from
+strings or other medium.
+
+The library is focused on performances but still provide full generic
+parsers that can be used with strings, bigstrings, lexing buffers,
+character streams or any other sources effortlessly.
+
+It provides three different class of parsers:
+@itemize
+@item
+the normal parsers, producing [Sexp.t] or [Sexp.t list] values
+@item
+the parsers with positions, building compact position sequences so
+that one can recover original positions in order to report properly
+located errors at little cost
+@item
+the Concrete Syntax Tree parsers, produce values of type
+[Parsexp.Cst.t] which record the concrete layout of the s-expression
+syntax, including comments
+@end itemize
+
+This library is portable and doesn't provide IO functions.  To read
+s-expressions from files or other external sources, you should use
+parsexp_io.")
+    (license license:expat)))
-- 
2.20.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2019-01-05  9:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-03  7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
2019-01-03  7:26 ` Gabriel Hondet [this message]
2019-01-03  7:45 ` [bug#33986] [PATCH 3/9] gnu: Add ocaml-sexplib Gabriel Hondet
2019-01-03  8:43 ` [bug#33986] [PATCH 4/9] gnu: Add ocaml-base Gabriel Hondet
2019-01-03  9:13 ` [bug#33986] [PATCH 5/9] gnu: Add ocaml-compiler-libs Gabriel Hondet
2019-01-03  9:40 ` [bug#33986] [PATCH 6/9] gnu: Add ocaml-migrate-parsetree Gabriel Hondet
2019-01-03  9:48 ` [bug#33986] [PATCH 7/9] gnu: Add ocaml-stdio Gabriel Hondet
2019-01-03  9:59 ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
2019-01-04  9:09 ` [bug#33986] [PATCH 9/9] gnu: Add ocaml-ppxlib Gabriel Hondet
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
2019-01-05 16:36   ` Gabriel Hondet
2019-01-05 16:38   ` [bug#33986] [PATCH 5/9] " Gabriel Hondet
2019-01-05 16:39   ` [bug#33986] [PATCH 7/9] " Gabriel Hondet
2019-01-05 16:44   ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
2019-01-16 19:11 ` bug#33986: [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller

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

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

  git send-email \
    --in-reply-to=87k1jj8n7n.fsf@gmail.com \
    --to=gabrielhondet@gmail.com \
    --cc=33986@debbugs.gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.