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.11.0rc1.tar.gz (219.7 kB view details)

Uploaded Source

Built Distribution

lark_parser-0.11.0rc1-py2.py3-none-any.whl (92.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file lark-parser-0.11.0rc1.tar.gz.

File metadata

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

File hashes

Hashes for lark-parser-0.11.0rc1.tar.gz
Algorithm Hash digest
SHA256 642359b9ae2360ed599214e3cf3220dd55a2e793e55ee0a8f7c5f8700ed7cf5a
MD5 db0550da3806e2ac36d8c0da5db65f42
BLAKE2b-256 ec0c86efab4c3a6e7058c47da991daa4afcf5c8543c82a48b4bc157970059a43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lark_parser-0.11.0rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 76af9dd5cf9de35c79d2a6f2541e71e5c96df3a6da745f484f8d6e1fdaf2eabf
MD5 9aff87ba92a1a270ba628f50637fb8aa
BLAKE2b-256 ddde5010d38a05635a7a9488cb0a9be0a05dc03026bddd69408132f1ebd6cba6

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