From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Fri, 16 Dec 2022 09:36:27 -0600 Message-ID: <36A73A67-2EF6-49C1-87CC-F8555B6DC020@easesoftware.com> References: <83edszjslp.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Content-Type: multipart/signed; boundary="Apple-Mail=_0FB56311-C50E-4219-A844-69AB9256B037"; protocol="application/pgp-signature"; micalg=pgp-sha256 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15275"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 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:37:44 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 1p6CmN-0003mD-G3 for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Dec 2022 16:37:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6ClT-0000Pv-MP; Fri, 16 Dec 2022 10:36:47 -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 1p6ClS-0000OE-NS for emacs-devel@gnu.org; Fri, 16 Dec 2022 10:36:46 -0500 Original-Received: from butterfly.birch.relay.mailchannels.net ([23.83.209.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6ClQ-0004MN-Gv; Fri, 16 Dec 2022 10:36:46 -0500 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DDF2C8C0EF1; Fri, 16 Dec 2022 15:36:41 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 122CA8C1D0A; Fri, 16 Dec 2022 15:36:40 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1671205001; a=rsa-sha256; cv=none; b=+GpUAuAPvP3yW3hZNEMGVbiexpgZpItlTjh9K+ZqWWdRKktk3fF+sqlGJkwXViCXSKCEn3 3f1iSUknzQf9UYqqo+4JDCnvZeFAJAsUITuuUeHjw5LAP7f2vBeZ6Kmw2RSKz5bLXqquFU GiV+Cgel0d7Nx8t/q5waO4MsX8i7UfCNDvwXlC9x+cv1oA9L1cuVPws61PExdWJkKA68rJ 3pVzU35KBakQPzuyOoNmL/AW6xmLDNY544iMlnAPj+jThxMzNlpRVHFArdVaK2yZTjfVH1 O0Sy4s8zRD7uqdED52AKU9a/PApl461cuWJfi/s0nTrqtvYJM2pu9+cWGbMvcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1671205001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=2ixEID+ynwbV+uWTEQGSghec1xzzjT5tphy7N5JuEMc=; b=dSR5VpFaBFUJP7NbMaNRsJgLprFfNfLHlmNI4nYIqzrb2ogFFNjaPaDsdnFCE1zH9g7vug kLmhggD5nWKf2/7WHMfbMbTRPSqI0THlu4AyH9wM9O+uOFN5z5njeclFxuwiPXPR4PxfEM wjsZo2W7njj6sby6T4t4KkZk54R6tTKRIsSkZVOSTv8Vpi8MHAsJRIBYqB4OS3cCt1SUzA Eu2E49TmNX2JzesDfj3tXZZZPZv168s4CtFUT16sLnlqnLQ2YEc9H+vlYar89HgINejdwA 4t7NcOsc2EOM1jjqksjgpACp3zEJBwQMPj8wBJ0FM619SoghO1Xe1KoGaXJnkQ== ARC-Authentication-Results: i=1; rspamd-6f8d97c84c-c52ww; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@easesoftware.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Supply-Company: 002a36a91a132356_1671205001659_2981749804 X-MC-Loop-Signature: 1671205001659:2706666817 X-MC-Ingress-Time: 1671205001659 Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.116.179.68 (trex/6.7.1); Fri, 16 Dec 2022 15:36:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:References:Message-Id:Cc:Date:In-Reply-To :From:Subject:Mime-Version:Content-Type: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=2ixEID+ynwbV+uWTEQGSghec1xzzjT5tphy7N5JuEMc=; b=T6qOePN+jEbJ0tFe62u/zRWO/t EKrklqBt7IOlffZm7tibhnquCqYpOwUpCO4ORMLN/z7YL+9o4WOj1VtAyjHm0FD0Jq5/cQ+2StwaO 73hHGoH3mlJX+L4BTdbLxRTm7ic5q2juZsBs0Ec1w7R5qt6it7V7+/4ttvVX9fixnbg8PtOxm9i99 6cMcdwG647Q/zMrsatnURumFAI9ijgCZUbNTHhWp921IXQUK1accg1QO0C3r4ayVcmmxYDzTa/I2q O0xnTm8r55WoJ6zh6qldEFvfhv2NYticaJN/ag/1BUDtBwFTEnooSxDfnNzfWDP/BZ5xa5S5plqWT OvYt8ckg==; Original-Received: from cpe-70-94-128-193.satx.res.rr.com ([70.94.128.193]:58236 helo=smtpclient.apple) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1p6ClL-004qsV-Vg; Fri, 16 Dec 2022 10:36:40 -0500 In-Reply-To: X-Mailer: Apple Mail (2.3731.200.110.1.12) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com Received-SPF: pass client-ip=23.83.209.27; envelope-from=pedz@easesoftware.com; helo=butterfly.birch.relay.mailchannels.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:301493 Archived-At: --Apple-Mail=_0FB56311-C50E-4219-A844-69AB9256B037 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 16, 2022, at 09:24, Jo=C3=A3o T=C3=A1vora = wrote: >=20 > On Fri, Dec 16, 2022 at 3:06 PM Eli Zaretskii wrote: > > > > > From: Perry Smith > > > Date: Fri, 16 Dec 2022 08:47:18 -0600 > > > > > > There are (I believe) four pieces to get Tree Sitter major modes = to work. > > > > > > Emacs needs to be compiled with tree-sitter enabled > > > The tree sitter binary needs to be installed > > > The tree sitter language specific parser needs to be installed > > > The appropriate major mode needs to be loaded and enabled > > > > That's correct. >=20 > 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. This is new news to me. I downloaded this repository: https://github.com/casouri/tree-sitter-module And did: ./build.sh The same scripts are in the Emacs source down this path admin/notes/tree-sitter/build-module Perry --Apple-Mail=_0FB56311-C50E-4219-A844-69AB9256B037 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5yOa/gCtQpb3oCpljxzk9yzE+MAFAmOckHsACgkQjxzk9yzE +MA+EA//TUSG7KYMc19v94bqJ7YzFTBm5QnrXooveH4D0imlVL/klDjiNuVGYlLt 5Sf+6dVz8nXsQnpWAKhiIEkXwg/1D3pPTYpa6aIBsgcm3z1LYfM62M4fpjZBEhrA SCSpdYe/Nv6duBOQJtJgitkMcz4S3X6wgfo2COee1cOSk0OfgsR2cyUAMGJDrOxi ro4DH6kXNBXjbCla2uMesGwy1WN4KfM6cczBGZitxml6ZduDr15/o0s05wIr95G/ lPpSTt8qliLd3QWXmjTY3hEnl1SkB5I0+ZFnbRLBwmFemsRfkCZa2bItpM30kvXS O0XTN5WtEMvEx+WL/e8OIJH/MKbPlhXIWuiJNBqpB6gr/TwGTYhTmZoLfZmXAcbP KsMjE4IxyCKWLCMRbiYKU4bi65wtw1GM5q2R5mAPvERdnt8iefnL0LaQ4O1Xztmt YVzFXaNNzOgMXl3U3O74ZXpdx9y9cQokW6MoH4hThC9LQEDcl+sSn79aeYM114JL myWFrpIrAgvnQhPX7L4WmTPPYto+sHRINVIw3KVv2IhCK0T7W70Fsy3vYfkbMBSx iUupkgzJEq653DSLxlvrECFnu9K41LD6DETkAMH7jNpX7ncvbZ7F8TDS5nqvQX7j W6JW4+wXR8lYQIBu1Zzz5jglj9s6PHfJNtwmpn3wf7YiXt7oX8o= =A9c3 -----END PGP SIGNATURE----- --Apple-Mail=_0FB56311-C50E-4219-A844-69AB9256B037--