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

  • 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!

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

Uploaded Source

Built Distribution

lark_parser-0.8.3-py2.py3-none-any.whl (77.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file lark-parser-0.8.3.tar.gz.

File metadata

  • Download URL: lark-parser-0.8.3.tar.gz
  • Upload date:
  • Size: 290.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for lark-parser-0.8.3.tar.gz
Algorithm Hash digest
SHA256 deccf073862d7f63f1c91cf927393dbecb114a806f383d40f2bda18d06cc4aed
MD5 1af968bbf152929b420cd1b3bfa2ce8b
BLAKE2b-256 becfe7b24cab3a60108386a376e58c5900e5361d7ab3a7b4c0f7d962d739d6e9

See more details on using hashes here.

File details

Details for the file lark_parser-0.8.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for lark_parser-0.8.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d0fdab6219e7ae85c20906652e4c38f774725b428ce8ae01be191b020b43bf35
MD5 b0a7fa48b1a8b728bb57af25f355ea0b
BLAKE2b-256 3d986ee7498b4b062ea3ad668118cae020cea5eba4f5fc20a5c08701c1fd42b8

See more details on using hashes here.

Supported by

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