https://github.com/danieljharvey/lsp-experiments
Experiments in designing a language LSP-first
https://github.com/danieljharvey/lsp-experiments
compiler experiments lsp rust typechecker
Last synced: 8 months ago
JSON representation
Experiments in designing a language LSP-first
- Host: GitHub
- URL: https://github.com/danieljharvey/lsp-experiments
- Owner: danieljharvey
- Created: 2024-09-21T22:17:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-30T23:05:14.000Z (over 1 year ago)
- Last Synced: 2025-06-17T17:45:54.809Z (11 months ago)
- Topics: compiler, experiments, lsp, rust, typechecker
- Language: Rust
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lsp-experiments
How does the design of a compiler change when we're designing it to have LSP support from the ground up.
Implemented so far:
- Parsing must always succeed (but create a partial AST). This allows us to shows multiple parse errors at once ala [this excellent blog](https://eyalkalderon.com/blog/nom-error-recovery/).
Next to come:
- Given a bunch of functions, where some of them don't parse, we can at least try to typecheck others using the top-level function type signatures etc