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: Tree-sitter integration on feature/tree-sitter Date: Sun, 08 May 2022 16:58:12 +0300 Message-ID: <83v8ugunwr.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 08 15:59:48 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 1nnhRr-0008Ve-KI for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 15:59:47 +0200 Original-Received: from localhost ([::1]:42876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnhRq-0007cb-Dd for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 09:59:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnhQS-0006qi-NN for emacs-devel@gnu.org; Sun, 08 May 2022 09:58:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnhQR-0006wJ-V5; Sun, 08 May 2022 09:58:19 -0400 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=6L4Kh6MfQotOMxRRdP3P9b1A8AeCAQqK+jBYNHavPA4=; b=Tngs73q5vQvE QUG1IJErAMKHlOSrzed2CwjfwRYSgffYfjn2z+9yeVO+qvaSWfJsoSO+EhPKmfN38lgK+fUp546cU xZtBQt1UvZPz6Ei62qedQgkH37ciwL2FHZY8KHDKdqKCW/Vrl3cPGeCRBv9pfLWfuF4Dk8ziW1mPH LHPfOcND/EpPhPieLrw2Y1jeQwj0sePQ7dLNO1BeHjROLfXUWZT5WZBJuHkoAOi4Fq+YG2eVIEAng B3UOBSey09EkxOvoivu5WQZOquG5dXsspYpZGyqey4D7d8n12X5x3K4Zor9+vDMbKNWpgXqnrF3uo dtrnikjfpv8yKtc/FvyneQ==; Original-Received: from [87.69.77.57] (port=3803 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 1nnhQQ-0006up-OW; Sun, 08 May 2022 09:58:19 -0400 In-Reply-To: (message from Theodor Thornhill on Sun, 08 May 2022 15:47:48 +0200) 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:289482 Archived-At: > Date: Sun, 08 May 2022 15:47:48 +0200 > From: Theodor Thornhill > Cc: casouri@gmail.com, emacs-devel@gnu.org > > I don't understand. I thought tree-sitter itself was such a parser. > Why do we need another one as an Emacs module? > > Because the only implementation possible for emacs is the generic parser. It needs specific parsers to be > inserted. The two are orthogonal, but related. > > Emacs cannot and should not contain such parser binaries. They are os and architecture specific. > > Also, this way the parsers can more easily be fixed > > Does that make sense? I cannot say, sorry. Because I still don't understand the need. Let me ask this another way: what job does this parser do, and how it is different from the parsing performed by tree-sitter itself?