[Top][All Lists]

[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:13:29 +0000

Stefan Monnier <monnier@iro.umontreal.ca> writes:

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

Yes, that is my understanding for reading the tree-sitter source code as

reply via email to

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