emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter introduction documentation


From: Perry Smith
Subject: Re: Tree-sitter introduction documentation
Date: Fri, 16 Dec 2022 09:36:27 -0600


> On Dec 16, 2022, at 09:24, João Távora <joaotavora@gmail.com> wrote:
> 
> On Fri, Dec 16, 2022 at 3:06 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Perry Smith <pedz@easesoftware.com>
> > > Date: Fri, 16 Dec 2022 08:47:18 -0600
> > >
> > > There are (I believe) four pieces to get Tree Sitter major modes to work.
> > >
> > > Emacs needs to be compiled with tree-sitter enabled
> > > The tree sitter binary needs to be installed
> > > The tree sitter language specific parser needs to be installed
> > > The appropriate major mode needs to be loaded and enabled
> >
> > That's correct.
> 
> I agree this is a problem, especially the language specific parser
> bits.  Yesterday I tried out tree sitter Emacs on my Arch system.
> Finding the tree-sitter system lib was easy enough, but finding the C++
> definition object wasn't so easy.  Eventually I made it,  but it needed
> compilation from source and a NodeJS toolchain that I didn't know
> I needed for that.

This is new news to me.  I downloaded this repository:
https://github.com/casouri/tree-sitter-module

And did: ./build.sh <lang>

The same scripts are in the Emacs source down this path
admin/notes/tree-sitter/build-module

Perry

Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

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