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: Eli Zaretskii
Subject: Re: Tree-sitter integration in python.el
Date: Mon, 03 Oct 2022 21:38:27 +0300

> From: Matthias Meulien <orontee@gmail.com>
> Cc: emacs-devel <emacs-devel@gnu.org>
> Date: Mon, 03 Oct 2022 20:07:44 +0200
> 
> 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...).

Some of these lack the Makefile.  But the Makefile is standard and can
be taken from any other language module, for example I see on in
tree-sitter-ruby.  So just clone that as well, copy its Makefile into
tree-sitter-python, and run "make".



reply via email to

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