[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using incremental parsing in Emacs
From: |
Stephen Leake |
Subject: |
Re: Using incremental parsing in Emacs |
Date: |
Fri, 03 Jan 2020 15:53:45 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) |
Eli Zaretskii <address@hidden> writes:
> So I still think we should first consider how the interfaces
> supporting the various features should look, and only after that look
> around for packages that perhaps are already doing that. In general,
> with all due respect, I don't expect the existing packages to teach us
> TRT, because they are doing stuff in Lisp alone, and that is
> inherently limited and likely sub-optimal.
The interface should look like LSP; it aims to support everything an IDE
needs from a "language server" (ie parser), and allows for custom
extensions where it falls short.
LSP language servers are implemented in some compiled language, not
elisp; eglot/lsp-mode is just the elisp side of the protocol. The elisp
sends edits and info requests (ie, "insert/delete this text at this
point", "fontify/format this range") to the server, and handles the
responses.
ada-mode works in a similar way, but LSP is an industry standard, so it
is a better choice.
If Emacs has a mode that conforms to the editor side of the LSP
protocol, it can use _any_ LSP language server; they do not have to be
provided by Emacs.
For example, Debian could provide some language servers as packages (I
assume it does now, but I have not checked), and Emacs could just use
them.
--
-- Stephe
- Re: Using incremental parsing in Emacs, (continued)
- Re: Using incremental parsing in Emacs, phillip . lord, 2020/01/03
- Re: Using incremental parsing in Emacs, Dmitry Gutov, 2020/01/03
- Re: Using incremental parsing in Emacs, Stephen Leake, 2020/01/03
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/03
- Re: Using incremental parsing in Emacs,
Stephen Leake <=
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/04
- Re: Using incremental parsing in Emacs, arthur miller, 2020/01/04
- Re: Using incremental parsing in Emacs, Stephen Leake, 2020/01/04
- Re: Using incremental parsing in Emacs, Eli Zaretskii, 2020/01/04
- Re: Using incremental parsing in Emacs, Stephen Leake, 2020/01/05
- Re: Using incremental parsing in Emacs, yyoncho, 2020/01/05
- Re: Using incremental parsing in Emacs, Dmitry Gutov, 2020/01/05
Re: Using incremental parsing in Emacs, HaiJun Zhang, 2020/01/03
Message not available