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.7.6a1.tar.gz (275.8 kB view details)

Uploaded Source

File details

Details for the file lark-parser-0.7.6a1.tar.gz.

File metadata

  • Download URL: lark-parser-0.7.6a1.tar.gz
  • Upload date:
  • Size: 275.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for lark-parser-0.7.6a1.tar.gz
Algorithm Hash digest
SHA256 03c71b10edf771053284fdf8550a32b74a2d7e15964fafbd6e56ee329c54f876
MD5 25f854d8b268daf7206a4326f56ce6c9
BLAKE2b-256 25929972ce5b9d21135b63f6aee3ca03893c54b8cbc7bfb581e13e9266b4d19b

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