From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Oliver Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter maturity Date: Sat, 28 Dec 2024 12:20:35 +0000 Message-ID: References: <1ed88fca-788a-fe9f-b6c8-edb2f49751c9@mavit.org.uk> <67428b3d.c80a0220.2f3036.adbdSMTPIN_ADDED_BROKEN@mx.google.com> <86ldwdm7xg.fsf@gnu.org> <6765355b.c80a0220.1a6b24.3117SMTPIN_ADDED_BROKEN@mx.google.com> <00554790-CACA-4233-8846-9E091CF1F7AA@gmail.com> <86msgl2red.fsf@gnu.org> <87o710sr7y.fsf@debian-hx90.lan> <8734i9tmze.fsf@posteo.net> <86plldwb7w.fsf@gnu.org> <87ttapryxr.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ca9109062a539ba9" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28262"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Daniel Colascione , emacs-devel To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 28 13:21:29 2024 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 1tRVou-0007FH-Lv for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Dec 2024 13:21:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRVoK-0001o4-Bk; Sat, 28 Dec 2024 07:20:53 -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 1tRVoG-0001nu-Us for emacs-devel@gnu.org; Sat, 28 Dec 2024 07:20:48 -0500 Original-Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRVoF-0004zn-5c for emacs-devel@gnu.org; Sat, 28 Dec 2024 07:20:48 -0500 Original-Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2ee8e8e29f6so8328380a91.0 for ; Sat, 28 Dec 2024 04:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1735388444; x=1735993244; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6k9wQT3IdbNRAS+xD0aLjAJIa4e2f9iDeqSFU0R9/eg=; b=T5Bfrs4RK+lp84Jdo7TD6yiCJTGHgBDJQ84Ii869Sfa5GwLC0GLJvhY5vw1jStEMrg ie9tBCnq5EXC1BTh9tFGjunhRA2lSY+8cglHAvQUQk62OpcNNsLfref9k6y7hy86wCq2 TPO4rryi6OudMdovW9JmuoAWM4cEq0+149dKQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735388444; x=1735993244; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6k9wQT3IdbNRAS+xD0aLjAJIa4e2f9iDeqSFU0R9/eg=; b=Sha5qQCHOVjwLvxZ8nwY77YtM1/aZHwRLg06GHm43v1cTU/8EWqYgi6dvD5klTV8kq W90Y2FazjFowBq+TmEMc/KH3qBB++dX0mX0CD9hiDrvkpL9Fs5lQX0Z+N4L9LGXHnQhW XCJFjKEn2svmkGYvtZHrAyh7UDAWxDXRmqmmpTaBtAxdYx40dJrgEbhbp2AqhGLzGgzs nJaLZjs3MRj6xs1jFqcstqGX8M6GnWvncdt4fTZ/iQKc52h0pKTThsFTLwOl2tyxsOv3 B5SMk+s7gOhEvVjuCILqhESbT9Jryxy+wuv8xo0HDjKjotm7usF+vKgbU+BKuT0uhgAW u2sw== X-Forwarded-Encrypted: i=1; AJvYcCX93GE2ldORy5TiDummVY/h9FKL3RPjKGOCXYLRAl0u9d65cQRQs+1uWxoJVSFqPHr8mxyIgQjav0AXjg==@gnu.org X-Gm-Message-State: AOJu0Yxv/PsFSwej0BM3kcToXzv2Qfsb6qyAutRnepQVYgMi5oBugEvo R94q27vDPosbtNh1HGfVAOq/U7onXXn8sNb1VNOrqMxRYZnWJz7amZt4GwATckQdXvxUXf37lJC xP/+njc4e762OsKqflSCx/dTKzk0LazDxk3gC2LDM31uCFFg= X-Gm-Gg: ASbGncs9ajwMGkW+9BVSB7NF/19+pIZZxo+MmslnqqgIw1ktZEQZeiuEqRlsG45oFAk PR04GYOVM/K9daGKPyIv6zebSpHU0QXZsZ8scTA== X-Google-Smtp-Source: AGHT+IFlvZAmhWuLglt/g0Ryd7syu/cM8M7pAt7fBSuF8pUsupkxCsMkl/qlyXL0rTS+MkP2jOAYbM9NbSdDyUY/ykE= X-Received: by 2002:a17:90a:d00f:b0:2ee:c9b6:4c42 with SMTP id 98e67ed59e1d1-2f452e214b8mr45225926a91.16.1735388444652; Sat, 28 Dec 2024 04:20:44 -0800 (PST) In-Reply-To: <87ttapryxr.fsf@posteo.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=mavit@mavit.org.uk; helo=mail-pj1-x102f.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, HTML_MESSAGE=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.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:327255 Archived-At: --000000000000ca9109062a539ba9 Content-Type: text/plain; charset="UTF-8" On Fri, 27 Dec 2024, 14:20 Philip Kaludercic, wrote: > Daniel Colascione writes: > > > Why not just vendor all the grammars with the Emacs modes that use them? > > I am guessing part of the reason is that TS grammars are not fun to > build. IIRC they are specified in a Javascript DSL (that used to > require node.js but AFAIU works with other implementations as well), > that a program written in Rust translates to C code. It's probably worth mentioning that the generated C code is included in the Git repositories, these days along with a Makefile. So, if you're only building rather than developing the grammars, you can simply run `make && make install` or similar. -- Peter Oliver --000000000000ca9109062a539ba9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, 27 Dec 2024, 14:20 Philip Kaludercic, &= lt;philipk@posteo.net> wrote:<= /div>
Daniel Colascione <dancol@dancol.org>= writes:

> Why not just vendor all the grammars with the Emacs modes that use the= m?

I am guessing part of the reason is that TS grammars are not fun to
build.=C2=A0 IIRC they are specified in a Javascript DSL (that used to
require node.js but AFAIU works with other implementations as well),
that a program written in Rust translates to C code.

It's probably worth men= tioning that the generated C code is included in the Git repositories, thes= e days along with a Makefile.=C2=A0 So, if you're only building rather = than developing the grammars, you can simply run `make && make inst= all` or similar.

--
Peter Oliver
--000000000000ca9109062a539ba9--