From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Tue, 27 Dec 2022 12:31:24 -0500 Message-ID: References: <83edszjslp.fsf@gnu.org> <87tu1vxs3a.fsf@ledu-giraud.fr> <831qozjob7.fsf@gnu.org> <87cz8jxoat.fsf@ledu-giraud.fr> <83wn6ri7pn.fsf@gnu.org> <5e0a3185-de82-b339-0fa2-956779e63d6f@cornell.edu> <868rj6vfep.fsf@gmail.com> <4895891b-e5ea-9c37-f51b-df2e479ee758@yandex.ru> <83y1qt11xq.fsf@gnu.org> <9eb013da-d0fc-8e17-c6e3-1e8f913aebfa@yandex.ru> <83pmc50xxc.fsf@gnu.org> <71cfe4e8-3bb8-b0a6-9be5-8c0a6d92cfab@yandex.ru> <83h6xg29z3.fsf@gnu.org> <838ris22n4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28096"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dgutov@yandex.ru, theophilusx@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 27 18:32:25 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 1pADoO-00074Q-KR for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Dec 2022 18:32:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pADnl-0004tu-3h; Tue, 27 Dec 2022 12:31:45 -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 1pADnj-0004rG-Dy for emacs-devel@gnu.org; Tue, 27 Dec 2022 12:31:43 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pADnX-0008Hc-0b; Tue, 27 Dec 2022 12:31:43 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 96DC98043D; Tue, 27 Dec 2022 12:31:27 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3C6AC80258; Tue, 27 Dec 2022 12:31:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1672162286; bh=FY08IBFAdjOyR7gknfXyCppERLFdRwT2jAhdDh+ibqE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZOQMm0OZ3FmKOjrDWEaYXu3Dis4gQjr/63D4FjcsfJKm4LWguKPzkf/+JxHXTvK1h PULv3Gvda1ey7lvIhTU7Pi7Rwo5OmreJqDU000vymMfKsc1NcmPI9yN5tyGe8piT67 9S5r0noFKDfGZg4YrQTp0R6w2QMBpC/YUUa4JSFKdp8/Wy0KNI5YyKu6g83PsF4rMp /F8KCRZq9fESG3RxyFUmDF4LzQ32WkOojQ4hNRwZnSJlOma4eB2mXprUcRSZB7lFLn ZOvENGcALG8DcA2qhlDiP/NxIRhaRvig4B17nCwBr9vLFDJL1KOsOX9v4ZcGECrf4e GF0kmxkjHRNCQ== Original-Received: from pastel (unknown [45.72.200.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0BB5B12097B; Tue, 27 Dec 2022 12:31:26 -0500 (EST) In-Reply-To: <838ris22n4.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Dec 2022 19:10:55 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:301977 Archived-At: > When you clone the Git repository of those grammar libraries (which > AFAIK is the only way to get their sources), you get all the source > files, including the Javascript sources of the grammar, the corpus of > text that they used, the test files, etc. You also get the C/C++ > sources of the parser and the scanner (produced from the grammar > files), which you then need to compile and link into a library. > > So in the above you are barking up the wrong tree, and you should know > me better than lecture me on software freedom and what it means. I did not intend to lecture you at all (I do know better than that :-) I was pointing out that our helper functions should support installing not just from the pregenerated `.c` file but also from the actual source. Whether they're stored at the same place or not isn't directly relevant. [ The paranoid among us might point out that there's no guarantee the `.c` file actually matches the accompanying sources, and that maybe *we* should generate the `.c` file and distribute them from our how repository. ] Stefan