[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using incremental parsing in Emacs
From: |
Stefan Monnier |
Subject: |
Re: Using incremental parsing in Emacs |
Date: |
Sat, 04 Jan 2020 15:43:13 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
I'm pretty far behind in my backlog, so can't say much yet, but IMO the
design of some "next generation font-lock / syntax-ppss / indentation /
navigation" infrastructure should start by considering the use of
multiple CPUs. That's actually one of the benefits of the LSP approach ;-)
Stefan
Eli Zaretskii [2020-01-03 12:05:02] wrote:
> Would someone like to try to figure out how we could use the
> incremental parsing technology in Emacs for making our
> programming-language support more accurate and efficient? One package
> that implements this technology is tree-sitter:
>
> https://tree-sitter.github.io/tree-sitter/
>
> AFAIU, these capabilities could be used as an alternative to
> regexp- and syntax-pps-based font-lock, better code folding,
> completion, refactoring, and other similar features; in general, any
> feature which would benefit from having a parse tree for the source
> code in a buffer.
>
> To be able to use such libraries, we need to figure out how to
> integrate them into the core, what kind of interfaces would be needed
> for that, and what kind of infrastructure we would need for basing
> Lisp features on those libraries. Posting practical ideas for design
> of all that would be a good first step in this promising direction.
> Bonus points for providing code patches that demonstrate the
> implementation of these ideas.
>
> TIA
- Re: Using incremental parsing in Emacs, (continued)
- Re: Using incremental parsing in Emacs, Dmitry Gutov, 2020/01/09
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/10
- Re: Using incremental parsing in Emacs, Dmitry Gutov, 2020/01/10
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/11
- Re: Using incremental parsing in Emacs, Dmitry Gutov, 2020/01/11
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/11
Re: Using incremental parsing in Emacs, Yuan Fu, 2020/01/04
Re: Using incremental parsing in Emacs,
Stefan Monnier <=
- Re: Using incremental parsing in Emacs, Alan Third, 2020/01/05
- Re: Using incremental parsing in Emacs, Stefan Monnier, 2020/01/05
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/05
- Re: Using incremental parsing in Emacs, Stefan Monnier, 2020/01/05
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/05
- Re: Using incremental parsing in Emacs, Stefan Monnier, 2020/01/05
- Re: Using incremental parsing in Emacs, yyoncho, 2020/01/05
- Re: Using incremental parsing in Emacs, Stefan Monnier, 2020/01/05