Skip to main content

Lark Parser Language Server.

Project description

Community-Project

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

Codacy Badge 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lark_parser_language_server-0.1.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lark_parser_language_server-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file lark_parser_language_server-0.1.0.tar.gz.

File metadata

  • Download URL: lark_parser_language_server-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/5.15.0-134-generic

File hashes

Hashes for lark_parser_language_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b206a39d388a28d28795259e3d51510bd23a0b32f0bd054ff28a003abe4054a7
MD5 2c97585db8262a29dd9b16e85979f70e
BLAKE2b-256 bc53e8a0e1561fdcafabd4f6c904f285feeff9cc636e2411179d02450e01ddca

See more details on using hashes here.

File details

Details for the file lark_parser_language_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lark_parser_language_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e141c370f4786395342b2f8eb0e4daf0c22828505dfbd62f3256fbc0827eba2a
MD5 b7ec8eb166c2e80e85d77ba170bf92b8
BLAKE2b-256 03033ce8ced9cb6df51b0210301f4404ab43fcb9a1334c28e6cc89ef7328fa52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page