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 api Date: Sun, 22 Aug 2021 09:15:03 +0300 Message-ID: <83ilzyxaxk.fsf@gnu.org> References: <83r1f7hydn.fsf@gnu.org> <95F37923-5BF9-4D81-B361-267CF119FBCA@gmail.com> <735AF34C-FD18-4A6A-A99D-E5D8EB4DE4F3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12391"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stephen_leake@stephe-leake.org, cpitclaudel@gmail.com, theo@thornhill.no, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 22 08:16:21 2021 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 1mHgmL-0002yh-4Q for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 08:16:21 +0200 Original-Received: from localhost ([::1]:33550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHgmJ-0008LL-RX for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 02:16:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHglI-0007DT-MF for emacs-devel@gnu.org; Sun, 22 Aug 2021 02:15:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40702) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHglG-0007ml-28; Sun, 22 Aug 2021 02:15:14 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3152 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 1mHglF-0007QD-L5; Sun, 22 Aug 2021 02:15:13 -0400 In-Reply-To: (message from Yuan Fu on Sat, 21 Aug 2021 19:43:31 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:272822 Archived-At: > From: Yuan Fu > Date: Sat, 21 Aug 2021 19:43:31 -0700 > Cc: Theodor Thornhill , > Eli Zaretskii , > Clément Pit-Claudel , > Stephen Leake , > emacs-devel > > I’m trying to automate building the dynamic modules for each language definition. The files are largely identical for each language, I just need to replace language-specific names in each file. Can I use awk? Yes. We already use Awk in a couple of places in the build process. Another possibility is to use Emacs, if what you need to do is not part of bootstrap.