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

Uploaded Source

Built Distribution

lark_parser-0.12.0-py2.py3-none-any.whl (103.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for lark-parser-0.12.0.tar.gz
Algorithm Hash digest
SHA256 15967db1f1214013dca65b1180745047b9be457d73da224fcda3d9dd4e96a138
MD5 422882c3cb61657d8c64738a2a886c3d
BLAKE2b-256 5aeefd1192d7724419ddfe15b6f17d1c8742800d4de917c0adac3b6aaf22e921

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lark_parser-0.12.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0eaf30cb5ba787fe404d73a7d6e61df97b21d5a63ac26c5008c78a494373c675
MD5 9bbb87136ab029912e93b636e9b2691e
BLAKE2b-256 760090f05db333fe1aa6b6ffea83a35425b7d53ea95c8bba0b1597f226cf1d5f

See more details on using hashes here.

Supported by

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