[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp.
From: |
Gabriel Hondet |
Subject: |
[bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp. |
Date: |
Thu, 3 Jan 2019 08:26:51 +0100 |
User-agent: |
mu4e 1.0; emacs 26.1 |
* 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:
address@hidden
address@hidden
+the normal parsers, producing [Sexp.t] or [Sexp.t list] values
address@hidden
+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
address@hidden
+the Concrete Syntax Tree parsers, produce values of type
+[Parsexp.Cst.t] which record the concrete layout of the s-expression
+syntax, including comments
address@hidden 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
signature.asc
Description: PGP signature
- [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp.,
Gabriel Hondet <=
- [bug#33986] [PATCH 3/9] gnu: Add ocaml-sexplib., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 5/9] gnu: Add ocaml-compiler-libs., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 4/9] gnu: Add ocaml-base., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 6/9] gnu: Add ocaml-migrate-parsetree., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 7/9] gnu: Add ocaml-stdio., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 9/9] gnu: Add ocaml-ppxlib., Gabriel Hondet, 2019/01/05
- [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0., Julien Lepiller, 2019/01/05