On 8 May 2022 11:10, Eli Zaretskii <eliz@gnu.org> wrote:

> From: Theodor Thornhill <theo@thornhill.no>
> Cc: casouri@gmail.com, emacs-devel@gnu.org
> Date: Sun, 08 May 2022 11:02:10 +0200
>
> Ok, see the attached patch.  This makes the normal js-mode support tree
> sitter.
>
> Some caveats.
>
> 1. You need to install the tree sitter parser.  Use Yuans
> tree-sitter-module [1] project for this

Why is that module needed, and where is it (it seems like the
reference was missing from your message)?

Yeah, added it to another mail, sorry!

You need the parser on a path emacs can see. Either we need to implement some generic parser installation functions in emacs, or we need this module or others like it. It compiles the grammar and creates a shared object that is read by emacs tree sitter. This is the tedious and error prone part. 

I know emacs stance on anything nodejs related, so my guess is that this will go into nongnu elpa. Or we leave the parser creation to the public. 

What do you think is best? 
Theo