Skip to main content

a modern parsing library

Project description

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

  • Automatic line & column tracking

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

  • Import grammars from Nearley.js

  • Extensive test suite

  • And much more!

Since version 1.0, only Python versions 3.6 and up are supported.

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-1.1.5.tar.gz (246.7 kB view details)

Uploaded Source

Built Distribution

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

lark-1.1.5-py3-none-any.whl (108.0 kB view details)

Uploaded Python 3

File details

Details for the file lark-1.1.5.tar.gz.

File metadata

  • Download URL: lark-1.1.5.tar.gz
  • Upload date:
  • Size: 246.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for lark-1.1.5.tar.gz
Algorithm Hash digest
SHA256 4b534eae1f9af5b4ea000bea95776350befe1981658eea3820a01c37e504bb4d
MD5 b9048974c5ce56997e9e536dda475159
BLAKE2b-256 a2258e16de418fc83bb00dabaf8c7110bc45a90bf5481a70aa5f1668fcea73bc

See more details on using hashes here.

File details

Details for the file lark-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: lark-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for lark-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8476f9903e93fbde4f6c327f74d79e9b4bd0ed9294c5dfa3164ab8c581b5de2a
MD5 3c6b1727f81030d7cc4ee0997360c13d
BLAKE2b-256 acc725e678cb94ac2b7be741272d5b2ae099e32e23f36d820e6feb8931b12382

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