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: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter Date: Sat, 31 Jul 2021 16:07:34 +0300 Message-ID: <83czqypr6x.fsf@gnu.org> References: <8735rzyzbz.fsf@163.com> <86v94v3xh9.fsf@stephe-leake.org> <87wnpargnb.fsf@elite.giraud> <87h7gey7zx.fsf@163.com> <83pmv2twrl.fsf@gnu.org> <86sfzwogsn.fsf@stephe-leake.org> <83wnp8qqur.fsf@gnu.org> <867dh6n0l5.fsf@stephe-leake.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33970"; mail-complaints-to="usenet@ciao.gmane.io" Cc: r12451428287@163.com, manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 31 15:08:27 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 1m9oj5-0008cR-BA for ged-emacs-devel@m.gmane-mx.org; Sat, 31 Jul 2021 15:08:27 +0200 Original-Received: from localhost ([::1]:43460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9oj4-0002We-7F for ged-emacs-devel@m.gmane-mx.org; Sat, 31 Jul 2021 09:08:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9oiS-0001jh-Gp for emacs-devel@gnu.org; Sat, 31 Jul 2021 09:07:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48034) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9oiR-00031L-RS; Sat, 31 Jul 2021 09:07:47 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2445 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 1m9oiR-0001oh-FQ; Sat, 31 Jul 2021 09:07:47 -0400 In-Reply-To: <867dh6n0l5.fsf@stephe-leake.org> (message from Stephen Leake on Sat, 31 Jul 2021 05:12:54 -0700) 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:271895 Archived-At: > From: Stephen Leake > Cc: r12451428287@163.com, manuel@ledu-giraud.fr, emacs-devel@gnu.org > Date: Sat, 31 Jul 2021 05:12:54 -0700 > > Eli Zaretskii writes: > > >> From: Stephen Leake > >> Cc: Andrei Kuznetsov , manuel@ledu-giraud.fr, > >> emacs-devel@gnu.org > >> Date: Thu, 29 Jul 2021 16:12:56 -0700 > >> > >> > TS's code is written in plain C, and doesn't require any regeneration > >> > or source modifications. Anything else is misunderstanding. > >> > >> That's true for the common TS runtime, which implements the parser and > >> error recovery, but the code for each language, that builds the LR parse > >> table and some other data structures, is generated in C from a grammar > >> file written in javascript, and must be linked into Emacs somehow. > > > > That "linking" happens when Emacs is linked against the TS library, > > right? > > I don't know what you mean by "the TS library". I mean libtree-sitter.a produced by building the library. > I'm guessing you mean the tree-sitter runtime, in which case no, that > does not include any languages. "Include" in what sense?