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

Uploaded Source

Built Distribution

lark_parser-0.8.2-py2.py3-none-any.whl (71.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for lark-parser-0.8.2.tar.gz
Algorithm Hash digest
SHA256 78d1e293a1fb06f10373552af95f70832e2bfe19aebfc3b142ea6c03b2ea0597
MD5 5ad55634e6de9c477b8a8a2f9a324f9b
BLAKE2b-256 0bad2d0b66907fab4913f64f23a32223c7e5f097c753483f2f21113fcf13d79b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lark_parser-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9d9ce33f36f749211194823a1175a76e2ccabccdfb86a196cefb967914122cd7
MD5 48bfcc6fe2139f4721eaee9177177ed6
BLAKE2b-256 aa4cf060d95f4ce51eef30e8e61ec1ab72bfa23863789dc7cbe630254e7a9694

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