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: Tree-sitter introduction documentation Date: Fri, 16 Dec 2022 16:53:45 +0100 Message-ID: <87tu1vxs3a.fsf@ledu-giraud.fr> References: <83edszjslp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19772"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Perry Smith , emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 16 16:54: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 1p6D2M-0004sb-WD for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Dec 2022 16:54:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6D23-00018z-2i; Fri, 16 Dec 2022 10:53:55 -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 1p6D20-00014m-E4 for emacs-devel@gnu.org; Fri, 16 Dec 2022 10:53:53 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6D1y-0008Jc-Fr; Fri, 16 Dec 2022 10:53:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=7YpJMQlw/shekVBt Gb27CIxYt4f+HeeWIA6AyRe1QGA=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=dTCkTqfHD5iWuLSi7v64QShikY+jg9yrFQ/SPN tmntR9ECzPyydyxeKnKptR44s8IHVzvMhk6XkIVfNUFkf72Qyq5Lk6XvyEL3pFrzvARsWp yFGCtcQgcqbuIJMVTTI8gIOA3Z1opgfgp7WBgkTpNRRH5hK4SmA1cUHdjBhoG84nQseTXj IToQLwNMMpyWK0GBtLG25na4Pypsu7MxzZ4psIx54JLmYvdcbfP2mmNg0y3ZaHNYG1q5v8 ijaIsC7hoY3V4vDmJrhJxqr+Rfie2WBVaX4DrEClTD9vH5bIhZrOM9hkaQqtiT3+m1eXW5 jH4ZN59sJTQiA8ARic8LV4iA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id c4f71bf8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 16 Dec 2022 16:53:46 +0100 (CET) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Fri, 16 Dec 2022 15:24:59 +0000") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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.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:301498 Archived-At: Jo=C3=A3o T=C3=A1vora writes: [...] > I agree this is a problem, especially the language specific parser > bits. Yesterday I tried out tree sitter Emacs on my Arch system. > Finding the tree-sitter system lib was easy enough, but finding the C++ > definition object wasn't so easy. Eventually I made it, but it needed > compilation from source and a NodeJS toolchain that I didn't know > I needed for that. Wait, what? I thought that emacs would come with such tree-sitter language definitions (at least for languages supported by emacs/treesitter). 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". I'm not sure I want to play with NodeJS. IMHO, should tree-sitter become the new official way to have programming modes it have to be easier to the end user, no? --=20 Manuel Giraud