emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter integration in python.el


From: Yuan Fu
Subject: Re: Tree-sitter integration in python.el
Date: Mon, 3 Oct 2022 15:25:29 -0700


> On Oct 3, 2022, at 11:07 AM, Matthias Meulien <orontee@gmail.com> wrote:
> 
> 
> I also cloned tree-sitter-python but I've no idea of what should be done
> with the grammar file.  I've understood that I am suppposed to convert
> the grammar to a shared object but I don't know how...
> 
> (I've tree-sitter-cli installed and in path, but "tree-sitter generate
> tree-sitter-python/grammar.js" seems to generate rust and node bindings;
> Am I supposed to compile the src/parser.c file?  I don't see any
> Makefile...).
> -- 
> Matthias

Eli has pointed out how to compile the language definition. Alternatively, you 
can use my script here to download and compile them:

https://github.com/casouri/tree-sitter-module

Yuan


reply via email to

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