From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Make peg.el a built-in library? Date: Thu, 26 Aug 2021 08:34:16 -0700 Message-ID: <87v93s9q4n.fsf@ericabrahamsen.net> References: <875yvtbbn3.fsf@ericabrahamsen.net> <83wno8u3uz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12975"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 26 17:36:00 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJHQ8-000378-M4 for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 17:36:00 +0200 Original-Received: from localhost ([::1]:39426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJHQ7-0004Dw-Lg for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 11:35:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJHOZ-0002Cd-5Q for emacs-devel@gnu.org; Thu, 26 Aug 2021 11:34:23 -0400 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:49610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJHOX-00063u-3l; Thu, 26 Aug 2021 11:34:22 -0400 Original-Received: from localhost (c-73-109-4-106.hsd1.wa.comcast.net [73.109.4.106]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 06C31FA07F; Thu, 26 Aug 2021 15:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1629992058; bh=F1jLBYTVQd3uXwO5Sfuwln9SqVEOdMicBLagsVpxpPA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=yV2/aenNXpEW5wu0J91dg4jzzJvW+kYM5GMv792kpsXvWxP5tzpbwbRMburwbALsN aUHYfKgoCxJ4VvxSYHpIfzcEOVofQbp+FaCT9n9ie+yvgishz2Baq3f1ZpCseah9DE BWwIMgUtGaApnz0dkeA40HMc004kTRKmWWQgg7ow= In-Reply-To: <83wno8u3uz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 Aug 2021 09:17:24 +0300") Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273037 Archived-At: Eli Zaretskii writes: >> From: Eric Abrahamsen >> Date: Wed, 25 Aug 2021 11:52:00 -0700 >> Cc: Stefan Monnier >> >> In my on-again-off-again quest to not have to write text parsers myself, >> I was pointed towards the PEG library (in ELPA), which does pretty much >> exactly what I want (Parsing Expression Grammars). >> >> Would the maintainers consider moving this into Emacs proper? I ask >> mostly because this would be very useful to have in Gnus, both to >> replace the home-made parser in gnus-search.el, and I would hope to >> parse eg IMAP server responses more fully and reliably. > > Fine with me, but please update the (outdated) Wiki page to say where > the latest peg.el is, when it is imported. Will do. Stefan also asked me to make sure the library actually does what I expect it to do, before making this move, so I'll write the code first. >> I understand it might be redundant with bovine/wisent, but TBH I've >> never been able to make them work at all. > > That should at least warrant a bug report, IMO. I'll take another look and remind myself of where I got lost. Thanks, Eric