1 unstable release

0.1.0 Jul 29, 2024

#9 in #ebnf

MIT and GPL-3.0-only

53KB
1K SLoC

Test

EBNFER

An implementation of the language server protocol (LSP) for EBNF grammars.

Features

  • Semantic tokens (Root rule)
  • Diagnostics
  • Hover
  • References
  • Completion
  • Document formatting
  • Rename
  • Go to definition
  • Document symbols
  • Code actions (supress unused warning)

Installation

Build from source or install via cargo:

cargo install ebnfer

Configuration

TODO

Further development

  • Vs Code extension - w. general document highlighting
  • Workspace support - multiple files

Inspired

This project is inspired by the ebnf analysis crate on crates.io - ebnf. Also inspired by the following youtube video: Learn By Building: Language Server Protocol - TJ Devries.

Dependencies

~3–4MB
~84K SLoC