35 releases (16 breaking)

new 0.17.2 Feb 13, 2024
0.17.0 Oct 22, 2023
0.14.0 Jul 12, 2023
0.8.0 Mar 21, 2023
0.3.3 Nov 18, 2022

#9 in Text editors

Download history 37/week @ 2023-10-22 48/week @ 2023-10-29 3/week @ 2023-11-12 10/week @ 2023-11-19 69/week @ 2023-11-26 100/week @ 2023-12-03 33/week @ 2023-12-17 99/week @ 2023-12-24 1/week @ 2023-12-31 37/week @ 2024-01-07 8/week @ 2024-01-14 6/week @ 2024-01-21 71/week @ 2024-01-28 5/week @ 2024-02-04

91 downloads per month

MIT/Apache

1MB
26K SLoC

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)
  • 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

Dependencies

~14–28MB
~427K SLoC