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.3.tar.gz (245.9 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.3-py3-none-any.whl (107.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lark-1.1.3.tar.gz
  • Upload date:
  • Size: 245.9 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.3.tar.gz
Algorithm Hash digest
SHA256 ca0d1aeb57f434c7276d209729e92b0e5017d177dde553134760c35bb4647d11
MD5 ce0156cc904de66c7d4db01dec9ba44e
BLAKE2b-256 ea75281562a83861824ff45d883dcb6c7680886c462f2e56e6bf8842556bc23d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lark-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 107.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45cd8b4d8b0487863f0f4cf3c305a1293db86af576d4a62cfb572e57a9b609e5
MD5 85183b7082ddf7f87a4761f7000328a8
BLAKE2b-256 511fb78c1f642b5c2a66cfb31995058312ff04f5897c2bbf68dcba62d8093874

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