emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree-sitter maturity


From: Philip Kaludercic
Subject: Re: Tree-sitter maturity
Date: Sat, 28 Dec 2024 12:23:49 +0000

Peter Oliver <p.d.oliver@mavit.org.uk> writes:

> On Fri, 27 Dec 2024, 14:20 Philip Kaludercic, <philipk@posteo.net> wrote:
>
>> Daniel Colascione <dancol@dancol.org> 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.

That's true, and also the reason why `treesit-install-language-grammar'
can work without the additional dependencies, but on the other hand that
doesn't make it any easier to modify the grammars, as one just accepts
that the repositories are tracking generated code. 

> --
> Peter Oliver



reply via email to

[Prev in Thread] Current Thread [Next in Thread]