[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitte
From: |
Stephen Leake |
Subject: |
Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter |
Date: |
Sat, 31 Jul 2021 09:55:46 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Stephen Leake <stephen_leake@stephe-leake.org>
>> Cc: r12451428287@163.com, manuel@ledu-giraud.fr, emacs-devel@gnu.org
>> Date: Sat, 31 Jul 2021 05:12:54 -0700
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> >> From: Stephen Leake <stephen_leake@stephe-leake.org>
>> >> Cc: Andrei Kuznetsov <r12451428287@163.com>, manuel@ledu-giraud.fr,
>> >> emacs-devel@gnu.org
>> >> Date: Thu, 29 Jul 2021 16:12:56 -0700
>> >>
>> >> > TS's code is written in plain C, and doesn't require any regeneration
>> >> > or source modifications. Anything else is misunderstanding.
>> >>
>> >> That's true for the common TS runtime, which implements the parser and
>> >> error recovery, but the code for each language, that builds the LR parse
>> >> table and some other data structures, is generated in C from a grammar
>> >> file written in javascript, and must be linked into Emacs somehow.
>> >
>> > That "linking" happens when Emacs is linked against the TS library,
>> > right?
>>
>> I don't know what you mean by "the TS library".
>
> I mean libtree-sitter.a produced by building the library.
>
>> I'm guessing you mean the tree-sitter runtime, in which case no, that
>> does not include any languages.
>
> "Include" in what sense?
There is no code in libtree-sitter.a that provides a language; all
languages are built separately, by the language developers.
https://github.com/tree-sitter/tree-sitter builds libtree-sitter.a, and
the command line tools to build a language.
https://github.com/tree-sitter/tree-sitter-python builds the object file
providing the python language.
There are many other languages, each with its own repository.
--
-- Stephe
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, (continued)
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Eli Zaretskii, 2021/07/30
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Arthur Miller, 2021/07/30
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Ergus, 2021/07/30
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Arthur Miller, 2021/07/30
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Stephen Leake, 2021/07/30
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Eli Zaretskii, 2021/07/30
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Stephen Leake, 2021/07/31
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Eli Zaretskii, 2021/07/31
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter,
Stephen Leake <=
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Eli Zaretskii, 2021/07/31
Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Andrei Kuznetsov, 2021/07/28
Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Ergus, 2021/07/28
Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Andrei Kuznetsov, 2021/07/28
Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Eli Zaretskii, 2021/07/28
Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Andrei Kuznetsov, 2021/07/28