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

Uploaded Source

File details

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

File metadata

  • Download URL: lark-parser-0.5.6.tar.gz
  • Upload date:
  • Size: 198.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lark-parser-0.5.6.tar.gz
Algorithm Hash digest
SHA256 2074f2cda9303167f97da0157eefa6fdf9c0b8c7786d4a24e86c65319b34c0df
MD5 2686a63a00dbe4c68272e6ba4c96a5ce
BLAKE2b-256 8286048aeed92c7f3a673c9b5ccbc98a95c405141458c66c55cfce3b8361e39e

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