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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lark_parser-0.10.0-py2.py3-none-any.whl (87.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for lark_parser-0.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f7044d3a4ad42c07e853da590727d5f1e5f9c36e5795bdeb05227fe0bace2344
MD5 ac3668e1179d14e99ac9f4f4a59c9e36
BLAKE2b-256 68708f7ac67a67549796c091170863aee23d79b06c0dd5641c144e7d6d560ba8

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