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, 4 Sep 2021 08:31:30 -0700 Message-ID: <40611F1F-7B5C-4885-A2CA-CE709ED8D22B@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.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8075"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= , Theodor Thornhill , emacs-devel , Stefan Monnier , Eli Zaretskii , Stephen Leake To: =?utf-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 04 17:32:38 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 1mMXeo-0001yY-Fb for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 17:32:38 +0200 Original-Received: from localhost ([::1]:57258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMXen-0000Yg-Hf for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 11:32:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMXdo-0008Gt-Dl for emacs-devel@gnu.org; Sat, 04 Sep 2021 11:31:36 -0400 Original-Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:46622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMXdm-0003cP-LC; Sat, 04 Sep 2021 11:31:36 -0400 Original-Received: by mail-qt1-x834.google.com with SMTP id x5so1799549qtq.13; Sat, 04 Sep 2021 08:31:33 -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=MW/YbnH7qSKm0kH8lSIDIS3pMlroDZuevh3/Mcz8L5w=; b=C1kPsYCq80/5ei3tPxnNSsbL6TkFiFleIyrNCvRWqGmj/K0GfJox0mDduyL2/x5q83 3KhnzcanM65N5rq0EjknmeRhGlYZnBq1OOZbYHmrWzO3I3StpHDoNE8mQXkcjNbaRBA+ ebKHbaDVVoUuUOnsX2clPsmL15TL6/b2fiCcCsoHqxB5dzooifc1cvgaZn0ygK4/TcyB cyUibJtJbQIXIZ+Ay4l+iLeHutpLhnSnl/wx4PUC0symhU/+rhKOvzXZ+U/2d5lP+xO3 iG2gEDzX+eWsjUnWsv1KS0p+VWdux8j/1SI3PjSE8wdbTMskYXzkdzz7SSsuygRYIgLU iLIQ== 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=MW/YbnH7qSKm0kH8lSIDIS3pMlroDZuevh3/Mcz8L5w=; b=WKWxND56oen7QwL87R5glsiXi6oydKZ3gCB9sOiwQVb4274vcfXlgkBgq8rEOEOtsX VYLE2OSVrn8Qe6CWlwISim7NsOuoWpgE9iqB8d73KP0GaodL0TkIRpz/SGzMybHRVPv4 QWpkwCgD4CY12tjO5F1SzVhN9WZKrWWRyQ6u9dhRsMv6vbFowhEOdL1WcmarRSwPApG0 soobxVcV56dzWYTrfZhzrJf7tHz3QxkT+pSabQf5OSJyNDmpPlWLe1NkgzqYtXZ4WzHK lvvKsTFsB60AgeakyTQafyO3PtQEx3eSNGOBhVhbuKYtG9v2ScXxwHOWrp/G6TQXjQym 9bVw== X-Gm-Message-State: AOAM530tkH311obregFG42j4s6PBoDPB40obmHvafxMGUQpi0SFZDIKz fD1HH+a2XcmpboRLsBz8w4AUqgIOrsz+3lbQ X-Google-Smtp-Source: ABdhPJxVvKteaZ7QkT4Sg5F66qsHXnCxsS9/PqWIVY+blez5JVPo0t4LVtcnkrZf8bQcc/ZUIONfTQ== X-Received: by 2002:ac8:71ca:: with SMTP id i10mr4053820qtp.62.1630769492954; Sat, 04 Sep 2021 08:31:32 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:a86e:bc67:ca96:8c27]) by smtp.gmail.com with ESMTPSA id o12sm1705617qtt.94.2021.09.04.08.31.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Sep 2021 08:31:32 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::834; envelope-from=casouri@gmail.com; helo=mail-qt1-x834.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:273900 Archived-At: >=20 >> You can find a script for building dynamic modules at = https://github.com/casouri/tree-sitter-module >>=20 > I may be missing something here, but the grammars' compiled forms = don't need to > be Emacs dynamic modules, right? They only need to be = dynamically-loadable > shared libraries. I packaged language definitions into dynamic modules: the system is = there, why not take advantage of it? Do you think this approach can be = improved in some way? Yuan=