Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi lovely larkers! I was just thinking to myself, heck, it would be great if there was an example of using lark and pygls for a language server, and lo: it doesn't get much better than a language server that will help me write my grammar!
This PR:
psutil
pydantic
, replacing a lot of hand-made validation and typeslark-language-server
console script so that it's a touch easier to launch.Longer con: I tinker with jupyterlab-lsp, and see a lot of benefit to being able to quickly (and potentially interactively) gin up a language server and start using it immediately from basically one python and one lark file making use of a "construction set" that would offer boilerplate around basic LSP tasks... the dream would be:
...and it's off to the races for diagnostics, basic hover, built-ins completion, symbol tree, etc. with relatively easy access to your token types for making nice messages, etc. Food for thought!