From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Make peg.el a built-in library? Date: Tue, 08 Nov 2022 08:51:05 +0000 Message-ID: <87bkph25ja.fsf@localhost> References: <875yvtbbn3.fsf@ericabrahamsen.net> <877d07a16u.fsf@localhost> <87tu3asg2r.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34027"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eric Abrahamsen , emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 08 09:50:56 2022 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 1osKJr-0008dl-B9 for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Nov 2022 09:50:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osKJk-0003lh-C2; Tue, 08 Nov 2022 03:50:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osKJd-0003kD-C2 for emacs-devel@gnu.org; Tue, 08 Nov 2022 03:50:42 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osKJU-000326-AS for emacs-devel@gnu.org; Tue, 08 Nov 2022 03:50:41 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 05A72240108 for ; Tue, 8 Nov 2022 09:50:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667897431; bh=cbO6iRaF9cT8/xPQUFphmlOMnUOfYTFhKK+dlEmYU7g=; h=From:To:Cc:Subject:Date:From; b=cWFFI5eWK0uFY3igmwH9C43h/9fU9gzgGzZHvvemi/Z67nEu43mxTSsHQIJ1JTFN/ 6cEC87Ik4BVHDfHPI8lvrzN0J9E1Iz37cN5Etk7S4Kh9Xf+zazQdQws6HeAO11UQCn cF5gG0eATcG47G6vcDgZohS+0tMLvmDfhvqkihI4hYj+SaRIyXLmqXqMaDn0EIOhhr cpxXWhvv1RNoF6e9v/PhIULekJ+ydzbIOemGqADR8r/5NcBd6M8vDQSUDOUA7+abLh VVEAaHc+enFgjLQh7Ftccw6ztFqOBahEFncWE2n460LlvwMNW4ILO2AXSpfmk0/mcz 358sQMeuurmBw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N61yW6srJz6tpT; Tue, 8 Nov 2022 09:50:27 +0100 (CET) In-Reply-To: Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299323 Archived-At: Helmut Eller writes: > Isn't Tree-sitter a better alternative to peg.el? I've never used > Tree-sitter, but from the few things I read about it, it seems to be > more "declarative", more efficient, and actually supported in core. Tree-sitter is a massive overkill when you need to parse something just slightly more complex than can be done via regexps. Tree-sitter requires a whole separate .so file with compiled parser + buffer setup. Bovine is a bit easier to use (you can, at least, define grammar in Elisp), but you also need to setup parser in a separate buffer with existing documentation being even more limited compared to peg.el. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at