8000 GitHub - dynovaio/lark-parser-language-server: Language Server Protocol (LSP) implementation for the Lark parsing library
[go: up one dir, main page]

Skip to content

dynovaio/lark-parser-language-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Community-Project

PyPI - Supported versions PyPI - Package version PyPI - Downloads PyPI - License

Codacy Badge - Code Quality Codacy Badge - Code Coverage pipeline status

Lark Parser Language Server

Lark Parser Language Server is a Language Server Protocol (LSP) implementation for the Lark parsing library. It provides features such as syntax highlighting, code completion, and error checking for Lark grammar files in compatible code editors.

✨ Features

The language server provides the following LSP features:

  • Diagnostics: Syntax error detection and undefined symbol validation
  • Code Completion: Intelligent suggestions for rules, terminals, and keywords
  • Hover Information: Documentation and type information on hover
  • Go to Definition: Navigate to rule and terminal definitions
  • Find References: Locate all usages of symbols
  • Document Symbols: Outline view with rules and terminals
  • Semantic Analysis: Advanced grammar validation
  • Formatting: Automatic code formatting for Lark grammar files

Requirements

  • Python 3.9.0 or higher

Install

Install from PyPI

pip install lark-parser-language-server

Usage

Run the language server

# Run the server
python -m lark_language_server

# Run with TCP (for debugging)
python -m lark_language_server --tcp --host 127.0.0.1 --port 2087

Docs

Documentation is available at our docs site ↗.

Release Notes

All changes to versions of this library are listed in our change log ↗.

Contributing

Contributions are greatly appreciated.

Please fork this repository and open a pull request to make grammar tweaks, add support for other subgrammars etc.

Contributors

See the list of contributors in our contributors page ↗.

License

This project is licensed under the terms of the Apache-2.0 license. See the LICENSE ↗ file.

About

Language Server Protocol (LSP) implementation for the Lark parsing library

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published
0