From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: New tree-sitter mode: bison-ts-mode Date: Fri, 22 Sep 2023 00:42:11 -0700 Message-ID: References: Mime-Version: 1.0 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="29753"; mail-complaints-to="usenet@ciao.gmane.io" To: =?UTF-8?Q?Augustin_Ch=C3=A9neau_=28BTuin=29?= , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 22 09:42:41 2023 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 1qjaoD-0007W8-Db for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Sep 2023 09:42:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjano-0004CE-VC; Fri, 22 Sep 2023 03:42:16 -0400 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 1qjann-0004C5-Vr for emacs-devel@gnu.org; Fri, 22 Sep 2023 03:42:15 -0400 Original-Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjanm-0006yq-6a for emacs-devel@gnu.org; Fri, 22 Sep 2023 03:42:15 -0400 Original-Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c137f74b23so13385831fa.3 for ; Fri, 22 Sep 2023 00:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695368532; x=1695973332; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:from:to:cc:subject:date:message-id :reply-to; bh=jYWvHCpuOt3bFcSE344QowWvH8Mrpig3S6nXuyvdv3s=; b=MmXI5qwHZyYQC7+ftzEovyUU4mP/Px+VzL+LWqJTk6V8yzr+r3BV2hlMOgDg956WIq pRTdEuyHrbpIUExs0uGogNhHfHhv/5ov7HcS6cKx6Oa9AaKpNExKxo/zie4oBU2QLuwk VnXiWWb3Ol9tSUfDj1hydlRB7HyYH7P9M/gdCbid226Zpqph7I8TWVK2aC20QTDD//c+ eM3FljtXw+ztnn+7esxfqV3OvJpREMKb2ACq370xPsH0SynqSp5jOlpjRhqSf2I62ioO /S8nejruFO6sRCyzZONgQe8P6hX1nw6f9FjLC9wvr+0Bb6LxnZ4KMyVHREXOo4vxf5dp quqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695368532; x=1695973332; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=jYWvHCpuOt3bFcSE344QowWvH8Mrpig3S6nXuyvdv3s=; b=Co6qv5Ob/44/wSO7ZHUh8wln2BbsdsPyxPmayxYoEgveHkyQmd9evJIhKgsIqYcX/i 5mUr51cIE/u0lQt7diuOwzJ/qSQVlJ9wjEBlSboQzzIqRNBshM+HPjGzGzNudkGc96lP 2DaXv1GSWkqaD/+IErci+WnWufivyI34HoW4tp1cBcsmdXc4oesPLxy+VwZTKc9Bd2M4 sp7EwIg9Cp4Mrn7iOSNQeL6Ggf39jRIfCxecGSyb2QpNdbPRLXWQEWVqUiQJwmZjiu75 INNxHShhgyOXMNaWrL6ukuh2K5GoVuBcgf4xngAhbS+imTt8oSBcCT5F/Qplikz8DsKl gzOQ== X-Gm-Message-State: AOJu0YzyOW5RdX5HECYSEDMt3F+odz50hPKFyfCz9YIGSiVA5ubyzYqG VCP542Oqop2y3XdScPjKGojn+0ogYOJwXc4Xgxw= X-Google-Smtp-Source: AGHT+IFBtjI3LBiB/020dDsCAKDjjXRfXiRD4XDkidIS9+ykNuBu6BjYsVHrIzFpw/h2M8a6ec0JnnTHSAfYGiDwNs8= X-Received: by 2002:a2e:86da:0:b0:2bd:1000:431d with SMTP id n26-20020a2e86da000000b002bd1000431dmr6729111ljj.10.1695368532157; Fri, 22 Sep 2023 00:42:12 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Sep 2023 00:42:11 -0700 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=stefankangas@gmail.com; helo=mail-lj1-x231.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.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:310942 Archived-At: Augustin Ch=C3=A9neau (BTuin) writes: > I'd like to propose a new tree-sitter mode for Emacs, bison-ts-mode. > This is a major mode for GNU Bison grammar files, and it supports the > embedded languages C, C++ and Java. Bison also supports D, but this > language is not yet supported in Emacs so this mode does not support it > either. > > Since Bison is a superset of Yacc, it should work with Yacc without > modification. > The grammar is available here: > > This mode auto-detects the embedded language in the file if the > directive "%language" is set. This sounds like a good addition to Emacs. Thanks for your contribution. > In addition of the mode, three patches are joined (should I open a bug > report for those?). Please do, and thanks in advance. If possible, it's better to open three different bug reports, since they seem unrelated to each other.