[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New tree-sitter mode: bison-ts-mode
From: |
Stefan Kangas |
Subject: |
Re: New tree-sitter mode: bison-ts-mode |
Date: |
Fri, 22 Sep 2023 00:42:11 -0700 |
Augustin Chéneau (BTuin) <btuin@mailo.com> 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: <https://gitlab.com/btuin2/tree-sitter-bison>
>
> 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.
Re: New tree-sitter mode: bison-ts-mode,
Stefan Kangas <=
Re: New tree-sitter mode: bison-ts-mode, Yuan Fu, 2023/09/22
Re: New tree-sitter mode: bison-ts-mode, Yuan Fu, 2023/09/24