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 13:33:02 +0300 Message-ID: <83a6bswbz5.fsf@gnu.org> References: <84943719-3777-4ee6-b73c-62448a93c098@email.android.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30798"; 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 12:40:52 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 1nneLM-0007tX-F6 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 12:40:52 +0200 Original-Received: from localhost ([::1]:48332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nneLK-0002Qi-Qh for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 06:40:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nneDu-0006D9-NB for emacs-devel@gnu.org; Sun, 08 May 2022 06:33:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nneDu-0008VA-DD; Sun, 08 May 2022 06:33:10 -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=VdbZRHgJz7XYflM6kMsMN2k05vGKpwNZ8FBLaFkUjY4=; b=lwz4mN+R+z6n F5NIImL55dPyKAmoInTIDMWBiEHteDurKej4XRuNdxW/O3Z+XUuVBFRm+78jXO6uruAtBGYmiYieK HdcMWT6LU7z5eq97W70nMXAliVAhx8Vt6uBCjrVQx0wG3Muci8bxB76Dxy4fN3fKAPup0sLJfASAr RaxwuUXKS5JkBL/jBiYY69ki5Vs74FPHkWXtUagUEXR3nTU9mYI2e4Jkd+18xcuhHsNGhhlhoT+Fb kzDFSKLAdlVFxXdmFCU+M/6ZCSnrf932pfZkpyUryBHtDLaJ7y+TvtqCX+bo6ZQFlEb3/3oHUQ72J Zana8JCftk7UYKHxTlylJQ==; Original-Received: from [87.69.77.57] (port=3061 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 1nneDt-0008Ul-Rb; Sun, 08 May 2022 06:33:10 -0400 In-Reply-To: <84943719-3777-4ee6-b73c-62448a93c098@email.android.com> (message from Theodor Thornhill on Sun, 08 May 2022 11:19:31 +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:289467 Archived-At: > 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?