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

Uploaded Source

Built Distribution

lark_parser-0.11.1-py2.py3-none-any.whl (93.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for lark-parser-0.11.1.tar.gz
Algorithm Hash digest
SHA256 20bdefdf1b6e9bcb38165ea5cc4f27921a99c6f4c35264a3a953fd60335f1f8c
MD5 785a41b499cce6198d2beb559d3bec5b
BLAKE2b-256 5984ce5c42c35d989653ab71441e960207b8e80b4e36da1d1a4b79d9e80b5b8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lark_parser-0.11.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8b747e1f544dcc2789e3feaddd2a50c6a73bed69d62e9c69760c1e1f7d23495f
MD5 67c48974c539c59ee9ee67882c885f85
BLAKE2b-256 0af3f8cac236af0e3a6003c015552ee12e9c4b0e67a7add675554baff8a75816

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