From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.devel Subject: Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter Date: Wed, 28 Jul 2021 10:23:20 +0200 Message-ID: <87wnpargnb.fsf@elite.giraud> References: <8735rzyzbz.fsf@163.com> <86v94v3xh9.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37361"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) Cc: Andrei Kuznetsov , emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 28 10:24:03 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 1m8erD-0009TY-Fg for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 10:24:03 +0200 Original-Received: from localhost ([::1]:36458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8erC-0002wx-4c for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 04:24:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8eqe-0002Fi-Ci for emacs-devel@gnu.org; Wed, 28 Jul 2021 04:23:28 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:33077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8eqc-0003AJ-6x for emacs-devel@gnu.org; Wed, 28 Jul 2021 04:23:28 -0400 Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 414bcff2 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 28 Jul 2021 10:23:21 +0200 (CEST) In-Reply-To: <86v94v3xh9.fsf@stephe-leake.org> (Stephen Leake's message of "Tue, 27 Jul 2021 20:53:38 -0700") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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, SPF_HELO_PASS=-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.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:271725 Archived-At: Stephen Leake writes: [...] > The tree-sitter runtime, that Emacs would link with, it implemented in > C, partly for this reason. It would be compiled with whatever Emacs is > compiled with, or the system compiler. > > Some of the tree-sitter development tools are implemented in Rust; you > only need Rust if you are developing/fixing a grammar for a language. Hi, I too did not follow the tree-sitter discussion closely. But AFAIU, tree-sitter provides tools to generate a parser (in C) from a grammar. So, is it the generated parsers (for any language Emacs supports) that will be versionned into the emacs tree? -- Manuel Giraud