Skip to main content

Lark is a modern general-purpose parsing library for Python.

With Lark, you can parse any context-free grammar, efficiently, with very little code.

Main Features:
  • Builds a parse-tree (AST) automagically, based on the structure of the grammar

  • Earley parser
    • Can parse all context-free grammars

    • Full support for ambiguous grammars

  • LALR(1) parser
    • Fast and light, competitive with PLY

    • Can generate a stand-alone parser

  • CYK parser, for highly ambiguous grammars

  • EBNF grammar

  • Unicode fully supported

  • Python 2 & 3 compatible

  • Automatic line & column tracking

  • Standard library of terminals (strings, numbers, names, etc.)

  • Import grammars from Nearley.js

  • Extensive test suite

  • And much more!

Metadata

Release files for lark-parser 0.12.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 0.12.0
File Size Uploaded Provenance Actions
lark-parser-0.12.0.tar.gz 235.0 kB Without provenance Details for lark-parser-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lark-parser 0.12.0
File Interpreter ABI Platform Actions
lark_parser-0.12.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for lark_parser-0.12.0-py2.py3-none-any.whl

Total release size: 338.5 kB

Release files / lark-parser-0.12.0.tar.gz

Download URL lark-parser-0.12.0.tar.gz
Size 235.0 kB
Tags Source
SHA-256 checksum
How to use checksums
15967db1f1214013dca65b1180745047b9be457d73da224fcda3d9dd4e96a138
BLAKE2b-256 checksum
How to use checksums
5aeefd1192d7724419ddfe15b6f17d1c8742800d4de917c0adac3b6aaf22e921
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release files / lark_parser-0.12.0-py2.py3-none-any.whl

Download URL lark_parser-0.12.0-py2.py3-none-any.whl
Size 103.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0eaf30cb5ba787fe404d73a7d6e61df97b21d5a63ac26c5008c78a494373c675
BLAKE2b-256 checksum
How to use checksums
760090f05db333fe1aa6b6ffea83a35425b7d53ea95c8bba0b1597f226cf1d5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Security for lark-parser 0.12.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.

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 release files No provenance

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