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

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for lark-parser-0.11.0.tar.gz
Algorithm Hash digest
SHA256 d047e680418221d21be587cd8f36843df97479a5623b74a7d811c1d832e04989
MD5 bd429cceb7b9cc45dc170f0d37bb7f4c
BLAKE2b-256 64701c52a4c8d0095dcd624722f175e417d564eddd2ed1009a25d922e2302589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lark_parser-0.11.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1d710d4c4664b52579aae80324ff409dedc22b5c592684429f6bd11bfeb7fd49
MD5 0df3e9bb86189a92cc28ecfad49c9452
BLAKE2b-256 47e64e6109f570cfe41a9d94d8054dbcf712061f8579fce7fc62c4bc539176d3

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