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 integration on feature/tree-sitter Date: Sat, 7 May 2022 01:44:54 -0700 Message-ID: <1C8253E6-EA31-4734-91F1-89E01C6F0C82@gmail.com> References: <9E6D13F6-7E50-44EE-A357-C971A11A3636@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) 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="30170"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 07 10:46:23 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 1nnG51-0007ce-6c for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 10:46:23 +0200 Original-Received: from localhost ([::1]:50048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnG4z-00056s-Sp for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 04:46:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnG3f-0004Iu-Lh for emacs-devel@gnu.org; Sat, 07 May 2022 04:45:00 -0400 Original-Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:35534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnG3e-0003om-3O for emacs-devel@gnu.org; Sat, 07 May 2022 04:44:59 -0400 Original-Received: by mail-pl1-x62f.google.com with SMTP id c9so8841899plh.2 for ; Sat, 07 May 2022 01:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=WusRZVxHsg5jmm97cQnbAx+nAimAfMfdFOL2C0k4cMY=; b=ngzZwNKEflo4f+LqTVA4UO3LK1gWhLi7aJNp3ftI2s5SK1Xi9UQzXb4XqdfTGu/Ox+ nU+0mQcCexGGZvVLMrmlPT6Hh8BpZ9itSwX7nxtOk/C2IojN6C/r9dNmw8NvQVWGuFFx 0HJYtOIp/jq1GQCwb9oJvhOsHqKq+KKYLB9qruxA9IqGi65pzotLdd8tGQKI+9zKZ6Ge p6MGIafrKuk5/cmW8hvDqcsIm7FKpluXe01YHOLcjVGr6RIRsFOva+H1mdo1vqTFJbpU DY79t57DGx8onBPAoJjE61NQ/sF3w5daCzez38e41noXbazqJcYtJNAtMRB0SkWZ6BDa wYtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=WusRZVxHsg5jmm97cQnbAx+nAimAfMfdFOL2C0k4cMY=; b=NkL05M5pxoUpxfOzmsw4EzM27VWbjQOXUB4Ok7Fkhd8V0gjVb4Tk1ePcDYOAB8Cyw/ iphabpGzMhFuO1wZaGhrpoWO03R9cL0GhupOljW1pUFSsaE4v87WFV9mK21BQW7OAZiN EVvQi/lGnuCMYro1xRmVHSb4HAPLxsvrJys3zL3oyjM4b1zd6ewBML6t+MwH+53aLWFE JnCOk/4o+0b+hvEY/Tpcz+C0pncdUldz8bKt+pdX89WT+fxidKKlvS7qe6aebnh/gPrj E9rrz23SYg6SuHSPv0XjddD5g2YbEa2wxTDbhdiBhyZ8bvLm3n+6O7lOi/kXVMIQOBRU SKkw== X-Gm-Message-State: AOAM530gu/1yxBf3qyVqdZVM/IQzv0o66kKv7Y4X+OuTuYAq2DVy3j/V Sp5Uf8jEaWDxfP0HiBlaYiJ4RyvTumM= X-Google-Smtp-Source: ABdhPJwCZn5I2Atku8SjvP/Y42AhFIi6TZOJFskO/nRslsPLdAOjmIRyGkCTkYPpE7RZQS42lDz4UA== X-Received: by 2002:a17:90b:4f81:b0:1dc:69a0:432b with SMTP id qe1-20020a17090b4f8100b001dc69a0432bmr16763320pjb.203.1651913096356; Sat, 07 May 2022 01:44:56 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:148:e841:81b0:7360]) by smtp.gmail.com with ESMTPSA id c3-20020a170902b68300b0015eee3ab203sm2737388pls.49.2022.05.07.01.44.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 May 2022 01:44:55 -0700 (PDT) In-Reply-To: <9E6D13F6-7E50-44EE-A357-C971A11A3636@gmail.com> X-Mailer: Apple Mail (2.3696.80.82.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=casouri@gmail.com; helo=mail-pl1-x62f.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:289378 Archived-At: > On May 7, 2022, at 1:29 AM, Yuan Fu wrote: >=20 > Guys, >=20 > I=E2=80=99ve pushed the tree-sitter integration to = feature/tree-sitter. If anyone want to give it a try: > - get tree-sitter from GitHub (or your package manager, make sure the = version is at least 0.20.2) > https://github.com/tree-sitter/tree-sitter > - pull and build the branch > - read (elisp)Parsing Program Source > - grab language definitions from = https://github.com/casouri/tree-sitter-module > You can either build with my script, or download the prebuilt ones > - play with it BTW, I would appreciate for someone to look at the manual and maybe = touch up a bit, as I=E2=80=99m not a native speaker and might write = something not very idiomatic/fluent.=20 Yuan=