From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from eggs.gnu.org ([2001:470:142:3::10]:47374)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1j2vIq-0003I7-BX
 for guix-patches@gnu.org; Sat, 15 Feb 2020 06:08:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1j2vIo-0001uS-0X
 for guix-patches@gnu.org; Sat, 15 Feb 2020 06:08:04 -0500
Received: from debbugs.gnu.org ([209.51.188.43]:57307)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1j2vIn-0001uH-TH
 for guix-patches@gnu.org; Sat, 15 Feb 2020 06:08:01 -0500
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1j2vIn-0003lH-NP
 for guix-patches@gnu.org; Sat, 15 Feb 2020 06:08:01 -0500
Subject: [bug#38986] [PATCH] gnu: Add peg.
Resent-Message-ID: <handler.38986.B38986.158176483414403@debbugs.gnu.org>
Date: Sat, 15 Feb 2020 12:07:44 +0100
From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= <kuba@kadziolka.net>
Message-ID: <20200215110744.wijpaboho72a574h@gravity>
References: <20200106113042.33516-1-josh@inv.alid.pw>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="ba6hp2s6oupevhaz"
Content-Disposition: inline
In-Reply-To: <20200106113042.33516-1-josh@inv.alid.pw>
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org
Sender: "Guix-patches" <guix-patches-bounces+kyle=kyleam.com@gnu.org>
To: Josh Holland <josh@inv.alid.pw>
Cc: 38986@debbugs.gnu.org


--ba6hp2s6oupevhaz
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 06, 2020 at 11:30:43AM +0000, Josh Holland wrote:
> * gnu/packages/parser.scm: New file.
> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
> ---
>  gnu/local.mk            |  2 ++
>  gnu/packages/parser.scm | 55 +++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 57 insertions(+)
>  create mode 100644 gnu/packages/parser.scm

Hi Josh,
it seems that PEG doesn't build fully from source, src/peg.peg-c is a
pre-generated file that's pretty much not human-readable. While
bootstrapping fully from source is not a hard requirement, sidestepping
it is usually reserved to highly-desirable packages. Could you take a
look at the possibility of generating src/peg.peg-c during build?

Meanwhile, I have fixed up the description a bit (texinfo markup,
grammar):

    (description "@command{peg} and @command{leg} are tools for generating
recursive-descent parsers: programs that perform pattern matching on text.
They process a Parsing Expression Grammar (PEG) to produce a program that
recognises legal sentences of that grammar.  @command{peg} processes PEGs
written using the original syntax described by Ford; @command{leg} processes
PEGs written using slightly different syntax and conventions that are inten=
ded
to make it an attractive replacement for parsers built with @command{lex}
and @command{yacc}.  Unlike @command{lex} and @command{yacc}, @command{peg}
and @command{leg} support unlimited backtracking, provide ordered choice
as a means for disambiguation, and can combine scanning (lexical analysis) =
and
parsing (syntactic analysis) into a single activity.")

Regards,
Jakub K=C4=85dzio=C5=82ka

--ba6hp2s6oupevhaz
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl5H0PwACgkQ4xWnWEYT
FWSV0A/6Azdown2PF+4H5+fs25Out3lF77iYhAMOPvZ1oP8EvYqK1HsdQ4xSbj4q
IFNNUDyKwWR2MHO39JqE7018bnY+qU5tTVz3i5z3xpenNwntuybjn13xZbFt2P+I
E23R6pO97In9E0XJoJrKmICVg3PgnT/RHiPAMHN7fYvSpKxAwGAgbi3tOSsltTQl
ok335l8kxWLIy7+0QztzvWvZlU/WAuEfhqoKAKQuo4KZMu6QtY67QW40XZLN7lf5
lg3rmVBvtcg1r/3IWTvmcbDbIsT50+49M4MLFsJRobSV+iAp6zicAj89IdxgUjbc
FyaiKs1lJfiyCi7CuzbNc4KjRnHjATYEu61ZXpf5103YAJAUSEolMtBIk9U5Act2
eZ17sptJUk50y13xPfDnD7TaXIzjJWr+KviewYhC2r+HsPLcKnW2DSWfiGiq/Go5
VU7Ud9H+j1rTvQp1EnRhR7/ujX0jAyUmsBc4mqnmNJj2TgBP9jd9XCu6lz759/xG
jTAOzhxSF4TDvfv5BQD+rJ2XYdAXLcXQ/O0ratR+ZGe9/2duEKlzdUT3VI/nzoy6
CeFiZWi0R6621LQ1tns+ytCuka2fCHCY52vc6NKwbq6STPpOTOlJ5AYY9zaSddit
crZUqVVo8zud4i1+iowls1WW+lRaT7Lz7bgFcyDkMcKkXHcynps=
=0qDb
-----END PGP SIGNATURE-----

--ba6hp2s6oupevhaz--