From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggsout.gnu.org ([209.51.188.92]:49664 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfiJK-0004JU-DA for guix-patches@gnu.org; Sat, 05 Jan 2019 04:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfiJH-00031P-4G for guix-patches@gnu.org; Sat, 05 Jan 2019 04:32:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfiJG-00031F-Ih for guix-patches@gnu.org; Sat, 05 Jan 2019 04:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfiJG-0000K6-Ec for guix-patches@gnu.org; Sat, 05 Jan 2019 04:32:02 -0500 Subject: [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp. References: <87lg3z8nc2.fsf@gmail.com> In-Reply-To: <87lg3z8nc2.fsf@gmail.com> Resent-Message-ID: From: Gabriel Hondet Date: Thu, 3 Jan 2019 08:26:51 +0100 Message-ID: <87k1jj8n7n.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33986@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/packages/ocaml.scm (ocaml-parsexp): New variable. =2D-- 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 =2D-- 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))) =2D-=20 2.20.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlwweXwACgkQMbyBBfZZ 1CX/dw//QZzcRw8rITI6Squ6sg/oKPyY4o2c/g8S3zCSWPOZFo6LkOAtlS6jeJQn h8+j/Ii1eGR4P1jCKi2eC6DnO0EumGdSYieWPdemsXortYmG6RTw9xXohvp7YVqQ ffbQ500ZON7+NyR92t3fE+3BfNUjmxju4vqehL693j++gamJziCrG6SNaMEKumjg cHdceWN/+/h1/gNVsXgnXNS6khb+M3wzfpyhJZx2CU3/qTZ0HVV71XLidIC+cigt gxmcVw+0BQpH67xN3O6Ud5QxEuWjAAgKZ/QDq8TbvbMfbdLIWLt9WATmfiYq7Q5m QcbRlxx01dQcHtI8lBxkR7BWPbC8VIfTeERBrMWSmNdZal7IN86f20zuZaFVa9jN MxHCfD7Q4lOuPoYt/tqRtJjKRH7vbvRBB2kTGR/rweEQjIChliarsa8iZjuDYQ2Z GLDIcLOz1zbn4xcD0sCc17o/+1XBJyUidRxJfYiiOChdCCESc6RymN7OPOn3uvp2 UQq7yu1jvutxm/B52JPurlQQ2LEfPePDI3G8D8sCTzsfUkfwN1etm3Fus4ppKPPK F90wjwQqAakyNmCcP2hBlQ2bsSJBGX+K3NwQzGg66fMx/MqkPQgfc/D4dsR1KWVT kMyTn4xU+uRNc1/3TPq3oYAjNtdVF995XcnzS3n+s8BKJZa1wfU= =6OMU -----END PGP SIGNATURE----- --=-=-=--