tower-lsp
Language Server Protocol implementation written in Rust (by ebkalderon)
chumsky
Write expressive, high-performance parsers with ease. (by zesterer)
Our great sponsors
- SonarQube - Static code analysis for 29 languages.
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- InfluxDB - Access the most powerful time series database as a service
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
tower-lsp | chumsky | |
---|---|---|
6 | 51 | |
570 | 2,688 | |
- | - | |
3.4 | 6.0 | |
about 2 months ago | 13 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tower-lsp
Posts with mentions or reviews of tower-lsp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-02.
-
State of the Ruby language server (LSP) ecosystem / looking for suggestions
I realize this might not be for everyone, but I'm writing it in Rust using Lib-ruby-parser and tower-lsp: two existing libraries that handle a bunch of the heavy lifting for me. I'm more productive in Rust than with Ruby at this point, despite doing Ruby full time for 15 years, plus I really really don't want to have to deal with a slow LSP--that was the whome impetus for this project. I started in the spring, made a bunch of headway, then backtracked to redo the internals to make it easier to handle monkeypatching, overriding/redefining of methods, etc. across your project.
-
Language Server Protocol
https://github.com/ebkalderon/tower-lsp is a generalized LSP implementation in a lower-level language (Rust) so you may get a better idea by reading through that repo. It seems that the server opens a TCP socket that the client later connects to, but I'm not really sure.
-
how to make a lsp in rust ?
A LSP is just an api implemented to Microsoft's LSP spec. You can implement that API however you wish but something like tower-lsp can do a lot of the heavy lifting for you.
Mine all use [tower-lsp](https://github.com/ebkalderon/tower-lsp/) for the LSP protocol stuff, and then either [Tree-sitter](https://github.com/tree-sitter/tree-sitter) or [Nom](https://github.com/Geal/nom). If I do another I'll probably try [Chumsky](https://github.com/zesterer/chumsky) which combines some of the advantages of both.
- tower-lsp 0.16.0 — Lightweight framework for building LSP servers
chumsky
Posts with mentions or reviews of chumsky.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-29.
-
loxcraft: a compiler, language server, and online playground for the Lox programming language
rust-langdev has a lot of libraries for building compilers in Rust. Perhaps you could use these to make your implementation easier, and revisit it later if you want to build things from scratch. I'd suggest logos for lexing, LALRPOP / chumsky for parsing, and rust-gc for garbage collection.
-
Examples of function-based parsers in chumsky? Examples of unit tests?
The examples that come with chumsky and the chumsky tutorial and guide all define their parsers using closures.
-
pep-508 v0.2.1 - Zero copy Python dependency parser written with chumsky
chumsky's zero-copy rewrite has reached its first alpha release, and I have migrated my pep-508 parser to it, as suggested in my last announcement.
-
winnow = toml_edit + combine + nom
On my side, nom is still advancing well and a new major version is in preparation, with some interesting work a new GAT based design inspired from the awesome work on chumsky, that promises to bring great performance with complex error types. 2023 will be fun for parser libraries!
-
Rust implementation of Python dependency parser for PEP 508
I am using chumsky because I like the API, but it doesn't support zero copy at the moment. Although efficiency is good to have, it is not my primary good. This will probably get supported once chumsky implements support for it (see upstream issue).
-
Question about lexer and parser generators in Rust
Checkout https://github.com/zesterer/chumsky or https://github.com/rust-bakery/nom
-
whkd: A simple hotkey daemon for Windows
Getting the basics of this project done was surprisingly easy thanks to chumsky, which I'm sure most people know about by now, and a little-known but quite ergonomic crate for handling system-wide hotkeys on Windows called windows-hotkeys.
-
Error Handling Round-Up
BTW: The sister project https://github.com/zesterer/chumsky/ pre-implement this with a relatively easy interface. But doing it manually is totally doable and something I'm working on: https://github.com/Tablam/TablaM/tree/master/src/parser
- Is there a parsing library (lexer?) which can handle generic tokens?
-
Simple statically typed language with value semantics?
I've started writing my own language by trying to add static typing to NanoRust, but that's obviously a ton of work.
What are some alternatives?
When comparing tower-lsp and chumsky you can also consider the following projects:
nom - Rust parser combinator framework
pest - The Elegant Parser
tower - async fn(Request) -> Result<Response, Error>
combine - A parser combinator library for Rust
pom - PEG parser combinators using operator overloading without macros.
kak-lsp - Kakoune Language Server Protocol Client
redis-rs - Redis library for rust
ariadne - Python library for implementing GraphQL servers using schema-first approach.
rust-analyzer - A Rust compiler front-end for IDEs
ariadne - A fancy diagnostics & error reporting crate
react-relay - Relay is a JavaScript framework for building data-driven React applications.
lalrpop - LR(1) parser generator for Rust