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: Fri, 30 Jul 2021 09:05:00 +0300 Message-ID: <83wnp8qqur.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31826"; 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 Fri Jul 30 08:05:51 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 1m9LeZ-00082z-Fu for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Jul 2021 08:05:51 +0200 Original-Received: from localhost ([::1]:38794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9LeX-000545-Iq for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Jul 2021 02:05:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9Le4-0004OL-D4 for emacs-devel@gnu.org; Fri, 30 Jul 2021 02:05:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33324) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9Le2-0006wB-Md; Fri, 30 Jul 2021 02:05:18 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3227 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 1m9Le2-0001fq-3P; Fri, 30 Jul 2021 02:05:18 -0400 In-Reply-To: <86sfzwogsn.fsf@stephe-leake.org> (message from Stephen Leake on Thu, 29 Jul 2021 16:12:56 -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:271826 Archived-At: > 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?