emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter introduction documentation


From: Stefan Monnier
Subject: Re: Tree-sitter introduction documentation
Date: Thu, 29 Dec 2022 12:03:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>> 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.

Indeed, IIUC, Tree-sitter uses Javascript as a preprocessor, so the
source grammar is a Javascript program which returns a grammar
represented as a JS object (could probably be easily mapped to JSON).
which is then turned into a `.c` file by a Rust program.


        Stefan




reply via email to

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