emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter introduction documentation


From: Philip Kaludercic
Subject: Re: Tree-sitter introduction documentation
Date: Thu, 29 Dec 2022 17:01:57 +0000

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Philip Kaludercic <philipk@posteo.net>
>> Cc: Gregory Heytings <gregory@heytings.org>,  casouri@gmail.com,
>>   monnier@iro.umontreal.ca,  dgutov@yandex.ru,  theophilusx@gmail.com,
>>   emacs-devel@gnu.org
>> Date: Thu, 29 Dec 2022 16:53:55 +0000
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> Date: Thu, 29 Dec 2022 15:27:12 +0000
>> >> From: Gregory Heytings <gregory@heytings.org>
>> >> cc: Yuan Fu <casouri@gmail.com>, Stefan Monnier 
>> >> <monnier@iro.umontreal.ca>, 
>> >>     Eli Zaretskii <eliz@gnu.org>, Dmitry Gutov <dgutov@yandex.ru>, 
>> >>     Tim Cross <theophilusx@gmail.com>, emacs-devel@gnu.org
>> >> 
>> >> > but it appears that it should be possible for them to also load 
>> >> > arbitrary node.js libraries as well
>> >> >
>> >> 
>> >> Indeed, grammar authors are not limited to the standard Node.js API, they 
>> >> can import other libraries.  For example, tree-sitter-toml requires the 
>> >> regexp-util library.
>> >
>> > The shared library I built for tree-sitter-toml has no such
>> > dependency.
>> 
>> The shared object shouldn't depend on that library, it is a build-time
>> or rather "pre-processing"-time dependency.
>
> Yes, neither is it a build-time dependency.

But it is what I called a "pre-processing"-time dependency, and that
matters if you want to change the actual grammar.js file instead of the
generated parser.c.



reply via email to

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