From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Sun, 08 May 2022 15:42:57 -0700 Message-ID: <86pmkn4pe6.fsf@stephe-leake.org> References: <84943719-3777-4ee6-b73c-62448a93c098@email.android.com> <83a6bswbz5.fsf@gnu.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="23052"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) Cc: Theodor Thornhill , casouri@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 09 00:44:15 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 1nnpdP-0005ox-CD for ged-emacs-devel@m.gmane-mx.org; Mon, 09 May 2022 00:44:15 +0200 Original-Received: from localhost ([::1]:59980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnpdN-0006dm-TB for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 18:44:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnpck-0005yT-Qg for emacs-devel@gnu.org; Sun, 08 May 2022 18:43:34 -0400 Original-Received: from qproxy5-pub.mail.unifiedlayer.com ([69.89.21.30]:42566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnpci-0005P9-Gj for emacs-devel@gnu.org; Sun, 08 May 2022 18:43:33 -0400 Original-Received: from outbound-ss-761.bluehost.com (outbound-ss-761.bluehost.com [74.220.211.250]) by qproxy5.mail.unifiedlayer.com (Postfix) with ESMTP id 298D380251B7 for ; Sun, 8 May 2022 22:43:31 +0000 (UTC) Original-Received: from cmgw13.mail.unifiedlayer.com (unknown [10.0.90.128]) by progateway8.mail.pro1.eigbox.com (Postfix) with ESMTP id B9192100495AC for ; Sun, 8 May 2022 22:43:00 +0000 (UTC) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id npcCnWls7Y8ycnpcCn5aHI; Sun, 08 May 2022 22:43:00 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=TZJTCTch c=1 sm=1 tr=0 ts=62784774 a=dWLzHQi6WpdymmZIwiVdBw==:117 a=HlCpoMJyzbfmKqni6+j5Yg==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=oZkIemNP1mAA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=mDV3o1hIAAAA:8 a=pGLkceISAAAA:8 a=I6tWpevY0jc4jm-txIYA:9 a=_FVE-zBwftR9WsbkzFJk:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QIVtMdgyPT0td3zXS0C6pV7SF/zSw7a0Gak6DXYJLe8=; b=EwBqXnSrBtx0E23+Y2T0jAj9p4 P61AfkObrkrDGM/cEDFJNnBTf4yLYSByAH3f78c/HUOWvZtt9kH4Y2CF2qVo2KWNAmbZ9HvJPmcIx XW2rR5JUy7wun7OvMb/BnCz3IazSua1/HRzWDv919G1IDFaASCj9BkIQa1SIrb8NMecvu2cWmHVN/ B7ffOcjlGD7KM891JpgJwMn1904uiVbQXKFbl1boufFPEwdb7T0aLC+SpC+4nH0lTsbA2hj8QXYci xaBtnz5MnEmtdZOjFo24qtRY9RZWaxLkmCtyHyvraQ6dO8hQI49fENYxFy2KpJ0D7WLHHDOe3cI19 osPjKnZA==; Original-Received: from 192-184-171-126.fiber.dynamic.sonic.net ([192.184.171.126]:49951 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nnpcC-0007ik-91; Sun, 08 May 2022 16:43:00 -0600 In-Reply-To: <83a6bswbz5.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 May 2022 13:33:02 +0300") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 192.184.171.126 X-Source-L: No X-Exim-ID: 1nnpcC-0007ik-91 X-Source-Sender: 192-184-171-126.fiber.dynamic.sonic.net (Takver4) [192.184.171.126]:49951 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 4 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: pass client-ip=69.89.21.30; envelope-from=stephen_leake@stephe-leake.org; helo=qproxy5-pub.mail.unifiedlayer.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:289500 Archived-At: Eli Zaretskii writes: >> Date: Sun, 08 May 2022 11:19:31 +0200 >> From: Theodor Thornhill >> Cc: casouri@gmail.com, emacs-devel@gnu.org >> >> You need the parser on a path emacs can see. Either we need to >> implement some generic parser >> installation functions in emacs, or we need this module or others >> like it. It compiles the grammar and creates >> a shared object that is read by emacs tree sitter. This is the >> tedious and error prone part. > > I don't understand. I thought tree-sitter itself was such a parser. > Why do we need another one as an Emacs module? Tree-sitter is a parser _generator_, and a run-time for supporting such generated parsers. The Emacs tree-sitter module has only the tree-sitter run-time, not the parse table and other stuff generated for the language-specific parser. -- -- Stephe