[Top][All Lists]

[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;


> 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

reply via email to

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