From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Tue, 27 Dec 2022 00:42:55 +0200 Message-ID: <4895891b-e5ea-9c37-f51b-df2e479ee758@yandex.ru> References: <83edszjslp.fsf@gnu.org> <87tu1vxs3a.fsf@ledu-giraud.fr> <831qozjob7.fsf@gnu.org> <87cz8jxoat.fsf@ledu-giraud.fr> <83wn6ri7pn.fsf@gnu.org> <5e0a3185-de82-b339-0fa2-956779e63d6f@cornell.edu> <868rj6vfep.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15452"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: emacs-devel@gnu.org To: Stefan Monnier , Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 26 23:43:34 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 1p9wBw-0003pw-Eg for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Dec 2022 23:43:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9wBT-0001Iv-B6; Mon, 26 Dec 2022 17:43:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9wBR-0001IP-7K for emacs-devel@gnu.org; Mon, 26 Dec 2022 17:43:01 -0500 Original-Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p9wBP-0006tB-87 for emacs-devel@gnu.org; Mon, 26 Dec 2022 17:43:00 -0500 Original-Received: by mail-ej1-x636.google.com with SMTP id vm8so21521061ejc.2 for ; Mon, 26 Dec 2022 14:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=m/sj6q3pRCFQLee6SOTYNXrNCCRu1gclNfVXw/7oXTw=; b=XAV3kOr7enCAULf1Wfu6NRQUg3AN/yw8Av2IeyuHuW5oQ6yyxlXOPOxI3M+fHTum9t Fj3bwZlfFwrw0cPt9yqcg4E0dggCTSpjxerSBPoA7EGPyB+tDGNAgVmT1DV/0gnAQlsL Mi2bnvZjVDd+MRGJihITheIBn/6DvVKc/rW0+jrrAr6mq2k2B86mq8VvXpR80NFeWfjb 0ygO+HZWFrVBqj/iREcRH7L05CU9nhFb2k/aiCbi6n2pc4wwv9KJq5VHCVBq4j+3323W hn2m0Ij7gKC66I3OKQNnMZdNRAe/HQb7/ad2bBkNoEdYPvJEkopb8/3vEPcwOmqRZTjU bTuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=m/sj6q3pRCFQLee6SOTYNXrNCCRu1gclNfVXw/7oXTw=; b=Vl2LD5uaJM83kjQPj+cRCk7lN9BI7vGkDuEFu13Z9R4yj+LH3PgdV1SQETM2UMh/GC 8nFzM+iE6vZCEyI0jAEkkwmQ2ESovcxW7DApllbuvTBYE8yNxWe3LItZ5B89/RM/KU7g oKcCxAEe0Gq3fSk+OAiswrJta65543km7yx4uq9qBySXb9T5qYUwRUJUwxNhPmHQwbYR zZYy7Po1sZCC860hX4wyivyjIlQIwKBZSkFMfQnW5ocOA4K9+GGLJOeU6QHlHwz31izo wRHcY1Hcrqk1DYFnUJsNlOGD9OlCKnLKOgxkcKxAOmEVfS1ERFWC57XZ09pPOYgTp3oU k2rw== X-Gm-Message-State: AFqh2kp4dzqllAB6FU24L6qKzGNlKzx1iluCnsIx/naAJkmLNECra0hi 8bSzKzku2FiNj7YWpKfn84AX2+cmmNQ= X-Google-Smtp-Source: AMrXdXtlhyCYmquizC+H5JkjsO3x6ZqOxeoF++hsXr9YOHqRvhLmTpJno1m228bZruRIDEpXizRNtg== X-Received: by 2002:a17:906:264c:b0:7c0:cc81:3d94 with SMTP id i12-20020a170906264c00b007c0cc813d94mr17181634ejc.13.1672094577766; Mon, 26 Dec 2022 14:42:57 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id ky14-20020a170907778e00b007c4f8bc322asm5257208ejc.196.2022.12.26.14.42.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Dec 2022 14:42:57 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=raaahh@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-1.147, 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.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301943 Archived-At: On 17/12/2022 17:42, Stefan Monnier wrote: > Those grammars have been in use for a while now > (by other editors), AFAIK, so why would the situation change just because > Emacs starts to use them as well? I guess "other editors" that use tree-sitter do bundle the grammars? Or include them in the optional language packages. Or provide built-in recipes to install them. E.g. nvim-treesitter seems to be doing the latter: https://github.com/nvim-treesitter/nvim-treesitter#language-parsers The corresponding recipes look like: list.ruby = { install_info = { url = "https://github.com/tree-sitter/tree-sitter-ruby", files = { "src/parser.c", "src/scanner.cc" }, }, maintainers = { "@TravonteD" }, }