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: Fri, 10 Sep 2021 12:57:22 -0700 Message-ID: References: <83r1f7hydn.fsf@gnu.org> <95F37923-5BF9-4D81-B361-267CF119FBCA@gmail.com> <735AF34C-FD18-4A6A-A99D-E5D8EB4DE4F3@gmail.com> <40611F1F-7B5C-4885-A2CA-CE709ED8D22B@gmail.com> <4E876354-10D1-46B3-8124-CAE916261F08@gmail.com> <0A3F5464-B90D-4D47-BBDD-CCA26D877F43@gmail.com> <83tuiys1y4.fsf@gnu.org> <835yvcpdip.fsf@gnu.org> <7B1F90DE-A992-4F51-B391-0A4E5A598780@gmail.com> <3E8CA8E4-E623-4051-A76D-508C6CF94B6A@gmail.com> <837dfpj5yf.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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="37349"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= , Theodor Thornhill , =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= , emacs-devel@gnu.org, Stefan Monnier , Stephen Leake To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 10 22:05:59 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 1mOmmd-0009YR-4X for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 22:05:59 +0200 Original-Received: from localhost ([::1]:59832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOmmc-0003b3-3J for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 16:05:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOmeP-0008Bi-OC for emacs-devel@gnu.org; Fri, 10 Sep 2021 15:57:29 -0400 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:41811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOmeM-0007La-Pr; Fri, 10 Sep 2021 15:57:29 -0400 Original-Received: by mail-qt1-x835.google.com with SMTP id u21so2559412qtw.8; Fri, 10 Sep 2021 12:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LjHx4XHuffotX1ICYdLvScthD6oQ1S+O97XM00PTWOA=; b=N1HnABpmDxCnyh3VzEKNeDzIkmc+/UM2DUUQQm7bZN7rSTkBIbbPjcMLxdbmBsz5Wl CpKcFnt8EsQicqUuiPyXrkOhm+e/gx3KNFRjsmQDPH+eQ4rTvqEkpjqEuDuXuEOu0n7C ncTqwkOqlA8oX1IiG9WO429vwzfxrAZpVL+3pifKvKv8IbeQcrjVyfMRLoZ5cnQ2uS2h xRTheZk9AOZuURxAjb+UvIdCmzybyniZiZg7L8EImCSw4i0mdscMVmzGSiYmQUUSl8SB 3zOQbxBMHq2HSlJ2WHv/ohX7K8cEfcEHo8ItEyUfmpQkQcTxeDqvHb+bM9av+JzmuvU9 2gpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LjHx4XHuffotX1ICYdLvScthD6oQ1S+O97XM00PTWOA=; b=v6yduxrhZHvYdZx7MGFtFfvrnWzqr/V8w7yxstrzYPXnWvAp/8vKHrQD6DLzmt9qw/ 0nWshFdOK4d2J34voUabBuwaeHPoJrlOSwFCv3VyNdV2gQjKzfhESQKH5luklhOcbuE3 NHX9BdOKtX1ihghs2cTFQ8VoTJqKp158MNt9NFOmXx6puvMrCuB2dJjgNgZH6qgDIVb6 9Q7Onc9L4QKbT/eoJSTri8mXPi9xiLVpkkTned0MDuknALKdGtuSox0WluAOP6tlProC jPkkJfkmaoHPqes0rENIxbOhV5+vGmQeqY+8aYjSaK6sKHYgxzpptAWbOqGRKcM7/Jgq wazg== X-Gm-Message-State: AOAM532ToylgAwu6rC3EeGcAj7ZFLm07bmQwhurN9dr8JNYSgzhJMZBF Xkd19YHo5kbHyogyYO9LGQM0toi8Tj8WzA== X-Google-Smtp-Source: ABdhPJwB826725aUgE8R0WLVPp2Yyb6m1dRZ4rSl/phosYbxVEJpXGnfcUHtpimqtuARFobR59BhNg== X-Received: by 2002:a05:622a:1207:: with SMTP id y7mr9547669qtx.146.1631303845274; Fri, 10 Sep 2021 12:57:25 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:a158:bbab:fca1:1f4e]) by smtp.gmail.com with ESMTPSA id v24sm3806133qtq.17.2021.09.10.12.57.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Sep 2021 12:57:24 -0700 (PDT) In-Reply-To: <837dfpj5yf.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=casouri@gmail.com; helo=mail-qt1-x835.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:274526 Archived-At: >=20 > Sure. I guess we will have to have a database of module names for > each programming language somewhere? My plan is to translate lisp names to C names by default, and have an = override list for irregular names that can=E2=80=99t be translated = correctly. Just realized another problem, how do we make sure the loaded library is = GPL-compatible? There certainly won=E2=80=99t be = =E2=80=9Cplugin_is_GPL_compatible=E2=80=9D symbol in them=E2=80=A6 And = IIUC Emacs cannot load GPL-incompatible dynamic libraries? Yuan=