From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Targeting libtreesitter from wisent and other parser generators for emacs Date: Sat, 31 Dec 2022 10:25:52 +0200 Message-ID: <83wn683rov.fsf@gnu.org> References: <5e0a3185-de82-b339-0fa2-956779e63d6f@cornell.edu> <868rj6vfep.fsf@gmail.com> <4895891b-e5ea-9c37-f51b-df2e479ee758@yandex.ru> <83y1qt11xq.fsf@gnu.org> <9eb013da-d0fc-8e17-c6e3-1e8f913aebfa@yandex.ru> <83pmc50xxc.fsf@gnu.org> <71cfe4e8-3bb8-b0a6-9be5-8c0a6d92cfab@yandex.ru> <83h6xg29z3.fsf@gnu.org> <838ris22n4.fsf@gnu.org> <8335901zz3.fsf@gnu.org> <87cz84y5le.fsf@posteo.net> <3F91FDEA-881A-49DB-BB52-5A0D81C004CE@gmail.com> <87k02aihrz.fsf@posteo.net> <86ce08480352653995b8@heytings.org> <86sfgxq3ph.fsf@stephe-leake.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24318"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stephen_leake@stephe-leake.org, gregory@heytings.org, philipk@posteo.net, casouri@gmail.com, monnier@iro.umontreal.ca, dgutov@yandex.ru, theophilusx@gmail.com, emacs-devel@gnu.org To: Lynn Winebarger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 31 09:26:34 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 1pBXCL-00067v-N4 for ged-emacs-devel@m.gmane-mx.org; Sat, 31 Dec 2022 09:26:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBXBj-0008B1-Vg; Sat, 31 Dec 2022 03:25:56 -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 1pBXBi-0008Al-JC for emacs-devel@gnu.org; Sat, 31 Dec 2022 03:25:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBXBh-0000jG-3Y; Sat, 31 Dec 2022 03:25:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jXHTgW/0+OYdiiJrBZL/nN6EIB8Z4bAi2K6MqKUIDto=; b=B6qcYpoUI+Cp HYZ/xjJcuc4tu2B2QoD7ROsPXn2AkLZYJ7BGIJsmDB3C5yYodqGhec8Ad1K3taXZnliHQsjtzqqKX QseCN8vY9MBaroehnbLJw7m9aVrNHyJvbYcRu/kh3DNBeEiJO63UUqZnf/7DtP++F7vEm79dIY2Us NEgES+LaealL25DhPECt0+h3ilstY7HN0lFgRlv8uF+FiCmIZ8qAoQ9kYUN3DWXAC1O9Z3tfbpOY8 BB/i80r2KlUsj7xRXCLsRXQc0o7AquGUxgdnlOBcpPOoHvWvLp5Pt69I8vZCchx8r+gnfsro8nitt yQ7a+NR0xhMV1QR9p+Di4g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBXBg-0006jj-HD; Sat, 31 Dec 2022 03:25:52 -0500 In-Reply-To: (message from Lynn Winebarger on Fri, 30 Dec 2022 11:25:15 -0500) 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:302152 Archived-At: > From: Lynn Winebarger > Date: Fri, 30 Dec 2022 11:25:15 -0500 > Cc: Gregory Heytings , Philip Kaludercic , > Yuan Fu , Stefan Monnier , > Eli Zaretskii , Dmitry Gutov , Tim Cross , > emacs-devel > > If I tried to do something quick and dirty with wisent to see if I > could get something working, can anyone provide some test cases so I > could tell whether the code produced behaves correctly with > libtreesitter? Not sure what you are asking about. There's a test suite for treesit.el in the tests directory. If that is not what you want, we had past discussions about specific C files that had problems with tree-sitter (fixed since then), maybe you could use those files? > I've never actually used tree-sitter, in emacs or > otherwise, so I just don't know what I would be testing for. Fontification, indentation, and navigation by defun are the main features supported by tree-sitter. In some modes also Imenu. > Would anyone be willing to supply me with an emacs mode for one of > these (or similar) that I could use to compare the behavior of > tree-sitter-cli generated library to the behavior of a wisent/bison > generated library? All of the tree-sitter based modes are called SOMETHING-ts-mode, and they are all called out in NEWS on the emacs-29 branch. Does this answer your question?