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
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lark-1.3.1.tar.gz
(382.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lark-1.3.1-py3-none-any.whl
(113.2 kB
view details)
File details
Details for the file lark-1.3.1.tar.gz.
File metadata
- Download URL: lark-1.3.1.tar.gz
- Upload date:
- Size: 382.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b426a7a6d6d53189d318f2b6236ab5d6429eaf09259f1ca33eb716eed10d2905
|
|
| MD5 |
4cd79a5ca06dfc57c984a89a87ef938e
|
|
| BLAKE2b-256 |
da3428fff3ab31ccff1fd4f6c7c7b0ceb2b6968d8ea4950663eadcb5720591a0
|
File details
Details for the file lark-1.3.1-py3-none-any.whl.
File metadata
- Download URL: lark-1.3.1-py3-none-any.whl
- Upload date:
- Size: 113.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c629b661023a014c37da873b4ff58a817398d12635d3bbb2c5a03be7fe5d1e12
|
|
| MD5 |
cae52d2ef5e4113b4fa48773610f14bd
|
|
| BLAKE2b-256 |
823d14ce75ef66813643812f3093ab17e46d3a206942ce7376d31ec2d36229e7
|