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

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for lark-parser-0.8.4.tar.gz
Algorithm Hash digest
SHA256 e59b692efca885ec89ff82b770e1d21b29b25e1d5ec02dc930cb39ad64d32c61
MD5 7f2c37b20369e03f149e781b76ebb5c6
BLAKE2b-256 c2e680de8cdbcfb0211e3ec3dd8b4b56b647d524cd7cf8ef574b024e01fb828d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lark_parser-0.8.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dd7294da4d7b577508053a09a760659ce2a9002c365e58d92539f5865aa4f201
MD5 c09fa4ea5dafbbec93b39ff2204c44b4
BLAKE2b-256 2daa77ec03e25a5046f9b2ce8cc05378a894073c0b1a40a884fc24ddfcc47e72

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