[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Maybe we're taking a wrong approach towards tree-sitter
From: |
Stephen Leake |
Subject: |
Re: Maybe we're taking a wrong approach towards tree-sitter |
Date: |
Thu, 29 Jul 2021 16:35:02 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) |
"Perry E. Metzger" <perry@piermont.com> writes:
> On 7/27/21 21:57, Andrei Kuznetsov wrote:
>> Unlike features like native JSON, however, I believe tree-sitter is the
>> first optional package providing notable functionality that would
>> require a toolchain that depends on LLVM (that of Rust, which
>> tree-sitter is implemented in)
>
> Tree sitter is written in C.
There are many parts to tree-sitter. The runtime, which uses
language-specific parse tables to parse use files, is written in C.
The command line tools (cli), one of which converts the language grammar
file written in javascript into C code that builds the parse table, are
written in Rust;
https://github.com/tree-sitter/tree-sitter/tree/master/cli/src
> It has an available set of Rust bindings. It compiles perfectly well
> with any C compiler.
Here you are describing the runtime, which is what must be linked with
Emacs for a major-mode to use the tree-sitter parser.
--
-- Stephe
- Re: [SPAM UNSURE] 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, Perry E. Metzger, 2021/07/28
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Stephen Leake, 2021/07/29
- Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter, Perry E. Metzger, 2021/07/29
- Re: [SPAM UNSURE] 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, Richard Stallman, 2021/07/29
Re: Maybe we're taking a wrong approach towards tree-sitter, Perry E. Metzger, 2021/07/28
- Re: Maybe we're taking a wrong approach towards tree-sitter,
Stephen Leake <=