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 introduction documentation Date: Fri, 16 Dec 2022 18:39:08 +0200 Message-ID: <831qozjob7.fsf@gnu.org> References: <83edszjslp.fsf@gnu.org> <87tu1vxs3a.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21947"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com, pedz@easesoftware.com, emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 16 17:40:53 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 1p6DlV-0005Vd-0j for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Dec 2022 17:40:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Djy-0001rs-1z; Fri, 16 Dec 2022 11:39:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6Djn-0001ph-9H for emacs-devel@gnu.org; Fri, 16 Dec 2022 11:39:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6Djm-0003zG-5e; Fri, 16 Dec 2022 11:39:06 -0500 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=dlY+VBlW2+RM5MxlB/yw3oi9k3nYwmXfUweRXRkIyQs=; b=bDFR3Z3Hlvvw B9vg9Zx3RLKsKkv0jXf8/sGlusJ81oIYwOIdfS6kmkmvwR9uM0hD+W+MrG5kt9j7tNO+ewBXkfuON /rxvmMhmH0ovGm6rtxDGRXYjscgpI3wpop/FCmgZYAMs49NIlVZzqUyHgiy4tzsVD5AGhCwi++EwP R3w6WLzvrlSk4ZmkU5bVVESCSmRvvUjtdolDaFOVPKhepSzVA6tRK/ghse2PEjuglrcTDmG3NyEag bI50dzb6blZ80RRkvXj4pQJXbD9FjWz6R8qMJCzbCIMaGquLNpSFU6nf6LY50MPZSQUNFX3ZnIIup oEzXlHTazO0+lDgmX1uToA==; Original-Received: from [87.69.77.57] (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 1p6Djl-0000Gj-E9; Fri, 16 Dec 2022 11:39:05 -0500 In-Reply-To: <87tu1vxs3a.fsf@ledu-giraud.fr> (message from Manuel Giraud on Fri, 16 Dec 2022 16:53:45 +0100) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301503 Archived-At: > From: Manuel Giraud > Cc: Eli Zaretskii , Perry Smith , > emacs-devel@gnu.org > Date: Fri, 16 Dec 2022 16:53:45 +0100 > > Wait, what? I thought that emacs would come with such tree-sitter > language definitions (at least for languages supported by > emacs/treesitter). No, we won't provide language grammar libraries with Emacs. You will have to download and install them yourself. They are shared libraries written in C/C++, and maintained and distributed by people who have no affiliation with the Emacs project. > I'm on openbsd myself and those language specific > parsers don't seem to be packaged here: "pkg_info -Q sitter" returns > only "tree-sitter-0.20.6p2". Then please take this up with your distro folks. Or build the libraries yourself, it isn't hard. > I'm not sure I want to play with NodeJS. You don't need to. > IMHO, should tree-sitter become the new official way to have programming > modes it have to be easier to the end user, no? Easier, yes. But up to a point. We cannot be expected to distribute third-party libraries instead of the distro.