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: Mon, 13 Sep 2021 21:27:00 -0700 Message-ID: <8965C4A0-79D3-4D77-A6BA-D07A6C93F7FE@gmail.com> 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> <8335qbirsr.fsf@gnu.org> <73E0B1F6-6F9F-40E0-927E-D08481BFF391@gmail.com> <834kaqhqlp.fsf@gnu.org> <8335qahqgk.fsf@gnu.org> <3BC29D06-CA75-4706-9AD7-ABA2F65C4DEE@gmail.com> <83v936fj35.fsf@gnu.org> <83r1dselyo.fsf@gnu.org> <6A4CE984-6ACE-4E66-8EF2-F3D351C02248@gmail.com> <83r1dscpt2.fsf@gnu.org> <83o88wcof9.fsf@gnu.org> <83lf3zdh4z.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="4657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= , Theodor Thornhill , =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= , Emacs developers , Stefan Monnier , stephen_leake@stephe-leake.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 14 06:28:01 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 1mQ036-00012h-5A for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Sep 2021 06:28:00 +0200 Original-Received: from localhost ([::1]:43636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQ034-0004yi-J5 for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Sep 2021 00:27:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQ02G-0004IQ-AZ for emacs-devel@gnu.org; Tue, 14 Sep 2021 00:27:09 -0400 Original-Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]:44917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQ02E-0008ND-4Q; Tue, 14 Sep 2021 00:27:07 -0400 Original-Received: by mail-oo1-xc2b.google.com with SMTP id k18-20020a4abd92000000b002915ed21fb8so4158382oop.11; Mon, 13 Sep 2021 21:27:04 -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=irAprUZmNHKnH1SOGWs2Cy0PBDNFbO4koSEpOJfi1/A=; b=dbrPn1u78PvSk2bWtq1j+vDbfTVsNv+Cq56ea4dIIhajRjLEOdOv232YkFj3PyDP1T N/Z19abiHguGBbq+2Qs39mFjGruuIdTnHKp4rlOK/DP/B9iWL5sgVkzNg0+opkz25eTZ fot6WblkZQmRftuciAgVuGkgsPFRpxiSSC2VrAySzeMfZzFWzE5UUw/Hj4zJ0dkQrBVv spOQ33TAMh0R5lPEtLOLxpqGp71SMShvQam/1LS2IatL2F2GlbvwmHOFUKVZdbUL9ZBq DESidgIEBwp+Vioqi2DrzKVJoP8W6o96Wtpk8hP+XQQAUYd0jeI5px2ST0U8Dogx+bfE G0NA== 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=irAprUZmNHKnH1SOGWs2Cy0PBDNFbO4koSEpOJfi1/A=; b=L2cGnVczAtlNyZUUsZ9R57haauHFs6J8yv+PaKE9yLHfenUY/nE8MK+Sat4R4ZcX2g EYzD1GgP9MjsaiqH751IhwYRqKyHoeN0BlAaAWNjnNroHQdkkM5sqwklHvvWVfuVRcC9 B/H8Xx3/4bhys4lJoZysSC5T+4YGu01LTMJ7YQUoCttRtRjUmHtJ23Z5ZJxxo0NiVPpQ xz3D4k8nf4CvEbjTwdQmlAD6nFXjgK514TmMhEmIHI7ApVRzbcOG6oF5eN3SyuxPcKnb cg/1AuEfC9LfSdFidrRx7zywuJ/5S5ybyHmD/Je0SQ2uLDHf7hbdFtf2gCnWp1WaNQCD +prg== X-Gm-Message-State: AOAM533hYTv8ZeiMlb2abGuvNG/x4naHH1QcbkKbAlD7VFiEPycU9MEw 4+J2nDtcxS1xsEU8bcivJV1NI58sScuv9tpe X-Google-Smtp-Source: ABdhPJy5v9FCn0Tf7DYyXrva4WKKuhkJX6EN6SVACFS+iU03PxeZjuKO/GloKN2SUG8OKxiNdpyzmg== X-Received: by 2002:a4a:ab0c:: with SMTP id i12mr12332442oon.24.1631593623064; Mon, 13 Sep 2021 21:27:03 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:a1fa:bf8f:af60:ddef]) by smtp.gmail.com with ESMTPSA id q7sm2372406otl.68.2021.09.13.21.27.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Sep 2021 21:27:02 -0700 (PDT) In-Reply-To: <83lf3zdh4z.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::c2b; envelope-from=casouri@gmail.com; helo=mail-oo1-xc2b.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:274681 Archived-At: >>=20 >> Just to recap, we were talking about how to represent a tree-sitter = language in Emacs and how to figure out the dynamic library name for = that language. My plan is to use tree-sitter- to represent a = language, which is usually the project name for that language = definition. And we just turn it into libtree-sitter-.so/dylib/dll = to get the name of the dynamic library. I think your idea has evolved = into another thing=E2=80=94translating major-mode to the tree-sitter = languages it uses could be useful, but how does it help with the = original topic (representing language, translate to library name)? >=20 > I guess I don't see a problem there? What is the problem? I thought you proposed the major mode thing to replace the naming = scheme, because we were talking about naming languages and translating = language names to library names when you proposed it. So you agree to to = the initial plan to translate tree-sitter- to = libtree-sitter-.so/etc, and to use an override alist for irregular = names? Yuan=