Skip to main content

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
  • Automatic line & column tracking
  • Standard library of terminals (strings, numbers, names, etc.)
  • Import grammars from Nearley.js
  • Extensive test suite
  • And much more! Since version 1.2, only Python versions 3.8 and up are supported.

Metadata

Release files for lark 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lark 1.2.2
File Size Uploaded
lark-1.2.2.tar.gz 252.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lark 1.2.2
File Interpreter ABI Platform
lark-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 363.2 kB

Release files / lark-1.2.2.tar.gz

Download URL lark-1.2.2.tar.gz
Size 252.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ca807d0162cd16cef15a8feecb862d7319e7a09bdb13aef927968e45040fed80
BLAKE2b-256 checksum
How to use checksums
af60bc7622aefb2aee1c0b4ba23c1446d3e30225c8770b38d7aedbfb65ca9d5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / lark-1.2.2-py3-none-any.whl

Download URL lark-1.2.2-py3-none-any.whl
Size 111.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2276486b02f0f1b90be155f2c8ba4a8e194d42775786db622faccd652d8e80c
BLAKE2b-256 checksum
How to use checksums
2d00d90b10b962b4277f5e64a78b6609968859ff86889f5b898c1a778c06ec00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

1.3.1

2 release files

1.3.0

2 release files

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.12.0

2 release files

0.11.3

1 release file

0.11.1

2 release files

0.11.0

2 release files

0.10.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page