Skip to main content

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.

Metadata

Release files for lark-parser-language-server 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lark-parser-language-server 0.4.0
File Size Uploaded Provenance
lark_parser_language_server-0.4.0.tar.gz 26.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lark-parser-language-server 0.4.0
File Interpreter ABI Platform
lark_parser_language_server-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.2 kB

Release files / lark_parser_language_server-0.4.0.tar.gz

Download URL lark_parser_language_server-0.4.0.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1f06405083ef6a7e1b81706813f13291c323f1d24b5a78ee95e67bed18d2e84c
BLAKE2b-256 checksum
How to use checksums
a061de384a80a3602c022213d7cee5290d8ceb8d1a37b1298e87ab99e712c19c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.9 Linux/5.15.0-139-generic

Release files / lark_parser_language_server-0.4.0-py3-none-any.whl

Download URL lark_parser_language_server-0.4.0-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a460609b86957ea224f6a12acae1b9466851837f3200fa109a1531bc190dcfd7
BLAKE2b-256 checksum
How to use checksums
aeee041b2a04a80f0fb427305f9ab1f128edde6139c206112493c5d48a65b253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.9 Linux/5.15.0-139-generic

Security for lark-parser-language-server 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page