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

Uploaded Source

Built Distribution

lark_parser-0.8.5-py2.py3-none-any.whl (72.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: lark-parser-0.8.5.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.5.tar.gz
Algorithm Hash digest
SHA256 e3ee17708e310de3a832a9beb448aa60ab6812f1bb283f72d473584c7566cc74
MD5 1fb7ce2ff27b83556e2489aed36d8651
BLAKE2b-256 184d8d522136c37d9e1ea74062b41b8d5e1318ebf45063ae46ce72ed60af223b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lark_parser-0.8.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 157879e04628e8e2bd57b72f3ba5642b3919137d5f7058612e95a38fb8761fa7
MD5 0f8f87f87d65a80559086a8858ad3fbf
BLAKE2b-256 07f550660a70e1e64223d6c8f46518aae4ddae0eaf1fca04c95e2b281b6f9f40

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