unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Augustin Chéneau" <btuin@mailo.com>, "Yuan Fu" <casouri@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: New tree-sitter mode: bison-ts-mode
Date: Fri, 22 Sep 2023 08:52:03 +0300	[thread overview]
Message-ID: <83a5te92m4.fsf@gnu.org> (raw)
In-Reply-To: <a15a1100-799e-4e18-8a4b-c0d7b8cdacaf@mailo.com> (message from Augustin Chéneau (BTuin) on Thu, 21 Sep 2023 22:15:45 +0200)

> Date: Thu, 21 Sep 2023 22:15:45 +0200
> From: Augustin Chéneau (BTuin) <btuin@mailo.com>
> 
> 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: <https://gitlab.com/btuin2/tree-sitter-bison>

Thanks.

> In addition of the mode, three patches are joined (should I open a bug 
> report for those?).
> 
> 
> The first one is to add some missing rules in c-ts-mode.  Currently 
> there is no rule if an identifier in a declaration is on a new line.
> In these two cases, "variable_name" is not indented:
> 
> static myttype *
> variable_name;
> 
> static myttype
> variable_name;
> 
> The new behavior is the same as c-mode.

I think this patch should be installed on the emacs-29 branch.  (It is
a very small change, so we can install it even before the legal
paperwork is completed.)  Yuan, any objections or comments to this
one?



  parent reply	other threads:[~2023-09-22  5:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21 20:15 New tree-sitter mode: bison-ts-mode Augustin Chéneau (BTuin)
2023-09-21 22:23 ` Stefan Kangas
2023-09-22  5:52 ` Eli Zaretskii [this message]
2023-09-22 23:44   ` Yuan Fu
2023-09-23  5:52     ` Eli Zaretskii
2023-09-26  3:42       ` Yuan Fu
2023-09-22  7:38 ` Philip Kaludercic
2023-09-22 14:53   ` Augustin Chéneau (BTuin)
2023-09-22 20:40     ` Philip Kaludercic
2023-09-22 23:21       ` Augustin Chéneau (BTuin)
2023-09-22  7:42 ` Stefan Kangas
2023-09-22  8:45 ` Yuan Fu
2023-09-24 21:10 ` Yuan Fu
2023-09-26 11:52   ` Augustin Chéneau (BTuin)
2023-09-28  7:03     ` Yuan Fu
     [not found]       ` <b999a251-1778-49ac-90dc-ef8d78d36d53@mailo.com>
2023-09-29  1:26         ` Yuan Fu
2023-09-29 14:13       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a5te92m4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=btuin@mailo.com \
    --cc=casouri@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).