From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Sat, 21 Aug 2021 20:46:45 -0700 Message-ID: <174776DE-0115-4B2D-9ACB-DAF4C55B1667@gmail.com> References: <83r1f7hydn.fsf@gnu.org> <95F37923-5BF9-4D81-B361-267CF119FBCA@gmail.com> <735AF34C-FD18-4A6A-A99D-E5D8EB4DE4F3@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) 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="6459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Leake , Eli Zaretskii , Theodor Thornhill , =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 22 05:47:44 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 1mHeSW-0001VX-2u for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 05:47:44 +0200 Original-Received: from localhost ([::1]:36028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHeSU-0006Y0-2v for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Aug 2021 23:47:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHeRg-0005tj-Dc for emacs-devel@gnu.org; Sat, 21 Aug 2021 23:46:52 -0400 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:40682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHeRd-0001Rq-Qy; Sat, 21 Aug 2021 23:46:52 -0400 Original-Received: by mail-pf1-x42c.google.com with SMTP id y190so12304715pfg.7; Sat, 21 Aug 2021 20:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lb1rEhQhKq8j4Hg8oVpmOzIEdJmHG0POYjewPcue75w=; b=L9VdjxTjRTe4OLmn08ZoqCfEsLbPfU01LBJGThnyjO/Ae1ODCRy7mu49+xDfhguOSF nhK6CSm3jUKvEPELmpKcwX7a8NjyRe8bD6RvLHurQ0XlfHeiixXy0AyAh0xGAwEXICxM 0ZB+EewSD3Q0ATAfdekrxtMRT9EtCWU3Wo15JVMwbPN4s+8577uAjF7D28GID4xSa8Kw qySUht9Kmo8sr7JD8EPpTmLHMai9zhQO86Ifjh3jGLeb2gUUdBHn3y992IHm6j8KXCFe yCpZNujxgAygSsEU/g0cV6mLC9hXaBSEyvYfr4+M+o32dKPD8tE2GRL05EKhwoBEw1yv ud2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lb1rEhQhKq8j4Hg8oVpmOzIEdJmHG0POYjewPcue75w=; b=AB76A5IyYGmCTMx0VZVsO5EGE3+6SQQc/4Gy04gGpyiY37A7uHuuuSkGBNtrVJTKcb JVz32wm30pnHTpwzJxldBuRY08j0GNryVuDrMs9zlpr0MLQoRbrZdKoQTcPAPqKgmgHd 2lxz/smJICLqFQQUMdYpQfmkdh6Suehfs4HfFSKV6MYgMXUduJeFhh4cVkpCElUDtkkk L3ejRyert4iG6Q31Vf7tzyQr5RYiCHVUDaaVFwPxSPLOujysi+kSNEgEIO4kZoT18sFK h4EqOqhVLx6yaaTHfhraCZkEF3DUxVjMuzSgKY2NLTmEVuS4igS1c4WUBmLu2tz7K/TO 933g== X-Gm-Message-State: AOAM530Fur4U2a9Bi8gSFCL+KjEWz7nfIqIJvxkOBQVLEX7PNaiCfh8R Ew0s/LJi9eAtZslwSBvRoaI= X-Google-Smtp-Source: ABdhPJy8fKSsr5lT5C3XssEb7Z/ehrZmFG7zosDaNq/CKYLm1CX0A2o/85dRhyE77enrw+l8aTA/Sg== X-Received: by 2002:a63:2545:: with SMTP id l66mr25928935pgl.61.1629604007841; Sat, 21 Aug 2021 20:46:47 -0700 (PDT) Original-Received: from 2603-8000-d900-871b-11b1-de41-7ae7-9597.res6.spectrum.com (2603-8000-d900-871b-11b1-de41-7ae7-9597.res6.spectrum.com. [2603:8000:d900:871b:11b1:de41:7ae7:9597]) by smtp.gmail.com with ESMTPSA id on15sm14923057pjb.19.2021.08.21.20.46.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Aug 2021 20:46:47 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=casouri@gmail.com; helo=mail-pf1-x42c.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.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:272818 Archived-At: > On Aug 21, 2021, at 7:43 PM, Yuan Fu wrote: >=20 > I=E2=80=99m 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? Actually, after searching for a bit more, I think what I need is sed. Or = there are better tools that I don=E2=80=99t know about? Maybe I can just = use emacs --batch? Yuan=