From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yMvLDqD95GOwKwAAbAwnHQ (envelope-from ) for ; Thu, 09 Feb 2023 15:05:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wJK4DaD95GNYfAEAG6o9tA (envelope-from ) for ; Thu, 09 Feb 2023 15:05:20 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DA3AA40C39 for ; Thu, 9 Feb 2023 15:05:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ7Xt-0006lK-Ri; Thu, 09 Feb 2023 09:05:05 -0500 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 1pQ7Xq-0006l0-EL for guix-patches@gnu.org; Thu, 09 Feb 2023 09:05:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQ7Xq-0007Pf-59 for guix-patches@gnu.org; Thu, 09 Feb 2023 09:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQ7Xp-0005Iu-Sl for guix-patches@gnu.org; Thu, 09 Feb 2023 09:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v7 01/32] gnu: tree-sitter: Move to its own module. Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Feb 2023 14:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun , Pierre Langlois , "(" Cc: Pierre Langlois , 49946@debbugs.gnu.org, Luis Henrique Gomes Higino Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.167595145520316 (code B ref 49946); Thu, 09 Feb 2023 14:05:01 +0000 Received: (at 49946) by debbugs.gnu.org; 9 Feb 2023 14:04:15 +0000 Received: from localhost ([127.0.0.1]:57972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ7X4-0005Hc-MP for submit@debbugs.gnu.org; Thu, 09 Feb 2023 09:04:14 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:34281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ7X2-0005H1-Is for 49946@debbugs.gnu.org; Thu, 09 Feb 2023 09:04:13 -0500 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 9A56EE0018; Thu, 9 Feb 2023 14:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1675951446; 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; bh=cLkehAt6FazKDzzj01xUGgmryhLrbSXFK5HrvZxrawY=; b=TW4qL+E9Yu1ruaYDV6eQEjTaGbKJPMfHsZJ/T7KfCEEBwhXmc5aasxgmAMXAJvglavVoJB sRkcNhKh9qi6sXOGOy9gF1v7L4O67DTGj0CTBKSJlYWPRU7z8VoYxr/XzYceMr2m+N5h7/ 7SecGeZo8NwBq59cRCrK+3pBO3DlHqNWr5kXwyZ8y7F8GJomAnbbAe1nqwQKqPHSuMCgeK /aF7Rh9PPVrY4emBO55neXylw4YWHo7bbb6Ysf/v+/ZV4ZEOaDWOmv5ZELS+4D1isVUMvk iisv/txDHwgiqAmaN7FkO7Sh8dpn7yLuhBHL0VdeKU4WZ4eO38gJ16TKEA/B+A== From: Andrew Tropin In-Reply-To: <86pmaj3td2.fsf@gmail.com> References: <87mtfi63ut.fsf@gmx.com> <20221125012142.22579-1-pierre.langlois@gmx.com> <20221125012142.22579-2-pierre.langlois@gmx.com> <87bkovcp1d.fsf@gmx.com> <87h6vvgnd6.fsf@trop.in> <86pmaj3td2.fsf@gmail.com> Date: Thu, 09 Feb 2023 18:04:01 +0400 Message-ID: <87cz6jgcku.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675951519; a=rsa-sha256; cv=none; b=cbK9ZkYlaTCXAi4NlLjxtl+O3631H3raAzOEJsMItEyVz9oebAl9d8Ot0nRha+9CuiQP6X NC03zX5mbRI08iClkbenXFypCMi7ua+EDI7INglaeEbFfkxznxnWZVtll3vm2DVVRHirHs FsE1wcTsDX16TA37o+VpIZlkOLkxvYR5806HayJSLcKJ3RjzoXs2QhTBpHyhmFkYTN8HiG TfPO1zWYF9/W5OlFPAJ2O6KC1uu2qGjSUSgv6ccXVNEpm0w18DQ1EA9EMMeY8M9mpT7yrn 9HH4Z+4ZDcvicthXWnUkouvW0FAjQxdFz4I2epayCzMu8E/6aeZn+uBuBRynIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=TW4qL+E9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675951519; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=cLkehAt6FazKDzzj01xUGgmryhLrbSXFK5HrvZxrawY=; b=FL0htg6ZE0mn+/zx8+PCyDDAoke9l4iOBSC6+79nr8MXNujhUVgAaz2SUTmKsZgIvzxTW1 qg+e7kZ/ZKQgBrhfJS8BEFlPb3lMG2uzqv17YBoJJ4dRcMLKBOZo/WhgsEaW/1W/oCDseo 5Say14peqFyBfZpa5jzwhus6gzisxtjmg8DIv/UI31NrdryhzB7Cxy2efTU7R7I6kVUKNA nD60TtoI2oCjcvDat5yrDmIr5lmXs5JsELfB9ijbVJ0ByseagMwJ8wENs+iiKtFq1i+Ja4 Ll2TnK+GDax+l68SxD4BrjmNzdA2N9IejvVAWO5kBHyL2ClH2NH4xaZhqrdC5g== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=TW4qL+E9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.20 X-Spam-Score: 2.20 X-Migadu-Queue-Id: DA3AA40C39 X-Migadu-Scanner: scn1.migadu.com X-TUID: +QrYKoLFC3Tc --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2023-02-09 13:39, zimoun wrote: > Hi, > > On Thu, 09 Feb 2023 at 14:11, Andrew Tropin wrote: > >> I applied tree-sitter and tree-sitter-cli patches, > > Just to be sure to understand, you have only applied 02/32 and 05/32, > right? > > > [bug#49946] [PATCH v7 02/32] gnu: tree-sitter: Update to 0.20.7. > id:20221125012142.22579-3-pierre.langlois@gmx.com > http://issues.guix.gnu.org/msgid/20221125012142.22579-3-pierre.langlois@g= mx.com > > [bug#49946] [PATCH v7 05/32] gnu: Add tree-sitter-cli. > id:20221125012142.22579-6-pierre.langlois@gmx.com > http://issues.guix.gnu.org/msgid/20221125012142.22579-6-pierre.langlois@g= mx.com > > Leaving out all the others, right? Merged first 5 patches from 01 to 05, also added one more commit, which addresses some things from reviews and one commit, which adds html grammar. The html grammar is added for the testing purposes. It relies on generated parser.c and scanner.c and we will need to repackage it using grammar.js instead. I'm not sure if a separate build system is needed for this, I guess we can just rewrite tree-sitter-grammar function, which generates packages as in example with tree-sitter-grammar-html: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/tree-sitter.sc= m?h=3D53b00b91b73bd60412d5bd057e22e6d63194a7f7#n158 Anyway, I only skimmed tree-sitter-build-system source code, and plan to read it carefully, evaluate and either introduce new build system or just move all needed parts to tree-sitter-grammar function. WDYT? After we done with it we can package all other grammars. According to emacs integration: I already have a working prototype on my local setup, which uses builtin treesit package, it's similiar to what Luis mentioned with search-paths. We just need to figure out a few minor details and I'll add it. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmPk/VEACgkQIgjSCVjB 3rAxMA/+JdVS1H4fFoGJGI2LltWc6BsUUlPHQN5ELd1HcGNnzXQtX9jWNJwhkoK8 QHRYE/cWlaZmtdLCuSN9paEqbStVJ+SKYdGcOdTw7C4Riw0o8ceE5I9PNShro5Wh XfvB7hDiG3rpMnlvlwnhHmXsCk+SPntMNO9B5P+0f3O92YsQ0j2k8iPLeALSueDt /cwNfc83SSHJ5aQEvuIcKsmjMXe+/52CMiOfieVUIMHY8LrLZH0c47wwbYqDE5K4 5Vl5spxSgwrPoIX4v79x+EPdfN16ui/kkAf96ihW03oo6SAMJHeZIB0fDYJQgEB5 Uc9tqv3uovrOjIDyNsGGHWh6SSU2pFslpay/KsK6NHlV0g7hVS5DseKmNCPXHtTh Bo0tJQwSA5hMO4yl0XWGIWLzs0VpiA0aEWkoOumR9KATD0pLXv8bBO1aUNhv/SVP HJeUqTPpo536OfayFb7Kp0+QQDZS3RgoLP2sFp+ddTBWd3vwAXv0OCqjujKOjpqF YqUXzAwanE7qiNWy1rtC8ASAmFQe0M9GEGypbMgwVrb052aiYQ5O8oyf+MkSjT34 q1ZEVJybV+xp/X7iALow0wZDAbBAuCYmBW4qIOEEslJdTGBNtseLdiSU2+1UjVMF 2Jf27fAKxwCEkTbzxHiN2xJG3lRld/3FMSwA3bZXWhcMj+2nor0= =AfIp -----END PGP SIGNATURE----- --=-=-=--