From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Fri, 01 Apr 2022 06:37:56 +1300 Message-ID: <1935bcb9111df1e489b20b957e6aaa34@webmail.orcon.net.nz> References: <9C5A86D6-0E7D-4DDF-B211-278EF9AC7E01@gmail.com> <87a6gq5mxl.fsf@gmail.com> <877dbu5mgj.fsf@gmail.com> <0BB906F7-BD3A-41CC-9783-19AA16934497@gmail.com> <83pmplq9f3.fsf@gnu.org> <5B304D80-2969-4F59-9A90-412D0A284912@gmail.com> <83ilvbpsvl.fsf@gnu.org> <4A6F417A-EF74-40B6-9517-6C0947AB87A6@gmail.com> <83wnjmiork.fsf@gnu.org> <6D1CD758-2C6F-4843-9739-F2A5D5591648@gmail.com> <67183EAB-5D98-4211-B71B-4618D6266A15@gmail.com> <83lews90ft.fsf@gnu.org> <32CE637B-B9A6-4E1A-A6C5-B6A930D34299@gmail.com> <83h77g892o.fsf@gnu.org> <825205B8-238F-4772-A497-634F3F37D49B@gmail.com> <83pmm27ket.fsf@gnu.org> <87ee2i8jdf.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25064"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: Yuan Fu , Richard Stallman , ubolonton@gmail.com, Emacs developers , Eli Zaretskii , yoavm448@gmail.com, Lars Ingebrigtsen To: John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 31 19:42:45 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 1nZyon-0006QQ-HF for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Mar 2022 19:42:45 +0200 Original-Received: from localhost ([::1]:51598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZyol-00033H-V9 for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Mar 2022 13:42:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZykK-0001LU-Pm for emacs-devel@gnu.org; Thu, 31 Mar 2022 13:38:08 -0400 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:50385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZykJ-00015d-Ax; Thu, 31 Mar 2022 13:38:08 -0400 Original-Received: from [10.253.37.70] (port=43539 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nZyk8-0005Jc-7C; Fri, 01 Apr 2022 06:37:56 +1300 Original-Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Fri, 01 Apr 2022 06:37:56 +1300 In-Reply-To: X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.34; envelope-from=psainty@orcon.net.nz; helo=smtp-1.orcon.net.nz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:287635 Archived-At: On 2022-04-01 01:46, John Yates wrote: > As pointed out previously, the important concept > here is "tree" not "sitting". "trees" is shorter and > perhaps more suggestive. Unfortunately "tree" is an extremely generic term and on its own doesn't suggest the very specific functionality provided by tree-sitter. "trees" just looks like the plural of "tree" rather than "tree"+"s"[itter], and so I would expect that to be for manipulating some general-purpose tree data structures before I thought of "an incremental parsing library" for programming languages. Conversely the "sit" part of the name, whilst not suggestive of being connected with trees of some kind, *is* very suggestive of the actual library which is being integrated. I.e. tree-sitter itself may not* be about "sitting"; but the Emacs integration is very specifically about a thing called "tree-sitter" rather than just about trees. (*) Or maybe it is. I don't understand that part of the name (and I can't find any documentation explaining it) -- but it *is* the name. -Phil