parol-ls

Crates.ioparol-ls
lib.rsparol-ls
version1.0.0
sourcesrc
created_at2022-08-03 18:04:26.448768
updated_at2024-09-02 14:40:41.915325
descriptionLanguage server for parol parser generator
homepage
repositoryhttps://github.com/jsinger67/parol/tree/main/crates/parol-ls
max_upload_size
id638216
size628,927
Jörg Singer (jsinger67)

documentation

https://docs.rs/parol-ls

README

parol-ls README


Logo


This project provides a Language Server to support parol's syntax of grammar description files (.par files).

It is used for instance by Parol's VSCode extension

This Language Server is developed with the help of parol itself.

Features

The Language Server currently supports

  • GotoDefinition
  • Hover
  • Document symbols
  • Renaming non-terminal symbols (except the start symbol)
  • Formatting the source configurable via format settings
  • and shows syntax errors as you are used to.

Also problems in your grammar are detected and reported.


Example


This tool is still in early development phase. But it can be used in conjunction with Parol's VSCode extension.

Installation

Please install this language server on your platform using the following command.

cargo install --force parol-ls

Also check regularly for updates and issue the command above again on demand.

Acknowledgements

I took some snippets and inspirations from the language server for Lelwel. It is licensed under MIT and Apache-2.0. Thanks a lot and kudos!

Further readings

Commit count: 0

cargo fmt