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: Simplify the tree-sitter parser creation API Date: Thu, 16 Jun 2022 12:21:35 -0700 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) 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="15725"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?Q?Daniel_Mart=C3=ADn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 16 21:22:40 2022 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 1o1v4g-0003sm-RY for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jun 2022 21:22:38 +0200 Original-Received: from localhost ([::1]:49732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1v4f-0008Oa-8W for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jun 2022 15:22:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1v3k-0007iE-2p for emacs-devel@gnu.org; Thu, 16 Jun 2022 15:21:40 -0400 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:38493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1v3i-0002FJ-M1 for emacs-devel@gnu.org; Thu, 16 Jun 2022 15:21:39 -0400 Original-Received: by mail-pj1-x1035.google.com with SMTP id v11-20020a17090a4ecb00b001e2c5b837ccso2648361pjl.3 for ; Thu, 16 Jun 2022 12:21:38 -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=14LzHG9id3UYh3XXlbYtH+7+rpKeUSRZaW4vEPOb8EA=; b=Iu0KYqAFgqssKXLm1xtavT5PeGkg1Wffdux+EsUIb9uE4/xoR4Aywjuav14pK+7Z65 lZHxWvmtYOIKnMQBJmOB62iw93j2iw/nX4s+hOtVBxrYGZZhguB0bOIolOr0EmtQps3J Y64XFztcVC0bXjwkV8+Z1uNuAdxWxtBaiitEXDjUbQ63DP2Ot8Fq2NSzqP7wvHHvVBiZ Aq6KQAJ0zTuwSSwl9qtKailLianddcChyE8IAm+ghJAyPdnlUtNfdhWnZBti/76zpVZM jSDMORLf3PRIna1p+1I/9ur9qWq7kg2BexE4LLE0zMBpmRmyPdgFwOwPaSBC9XKWvF/U jxog== 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=14LzHG9id3UYh3XXlbYtH+7+rpKeUSRZaW4vEPOb8EA=; b=jJiOvMU5510bmEVN9s5xwWyCeczwT4rZ+mXmrfYHu7lrwyCzjohf1DyTjVMse1OFSI NWxHMt3/Ky0mJn9zIFuOAbZUnKqGDFfu1GtMA63qMNk2s8vvqINAugAouy9UJwnSM4t8 s66FDJsFSlfXJDgWH3ZKl5oJbN/Zh0QII3tK3/tN4Qlk21FqLZ5xNlv3bvT5yVm8+QWK w6uSgu4i4PEF+41nWpqXlL6pOcxOMAkWwJBwOb7pEdOvFCoViCP/YLNgIj612sfl1Etz OfkfBEjDWeAMC7dVZa+ykx6mayt8wSCXAdnL3uf1sX3h7I1dxH9iOwLM6Afatx75QJgN 9IUg== X-Gm-Message-State: AJIora/+xJwcmUNNMLGlBHRq068xRl4T/FfnIMyXATAEb/bixtwmgFTa HGEpTNm6Y8gIcrY2Y5f8em4= X-Google-Smtp-Source: AGRyM1sOmw2T+yWe5/B83DNd7dmDoBFrKdJhi85gE2eqE4OZ5rbFDB4xdjoI85pimqA2dw0aHYaZcA== X-Received: by 2002:a17:90a:9d86:b0:1ea:e934:e26a with SMTP id k6-20020a17090a9d8600b001eae934e26amr5663563pjp.198.1655407297217; Thu, 16 Jun 2022 12:21:37 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:c15:33ec:172b:f758]) by smtp.gmail.com with ESMTPSA id ay10-20020a1709028b8a00b0016191b843e2sm1981198plb.235.2022.06.16.12.21.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jun 2022 12:21:36 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=casouri@gmail.com; helo=mail-pj1-x1035.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:291255 Archived-At: >=20 > Thanks! I think it makes sense. Though I=E2=80=99d keep the = treesit-parser-create function because it directly corresponds to the = tree-sitter C API. I can extend the C definition of = treesit-parser-create to=20 >=20 > (treesit-parser-create LANGUAGE &optional BUFFER NO-REUSE) >=20 And done. Please also see the =E2=80=9Cmain=E2=80=9D thread for other = changes ;-) Yuan=