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.0, only Python versions 3.6 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.1.9.tar.gz
(255.5 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.1.9-py3-none-any.whl
(111.7 kB
view details)
File details
Details for the file lark-1.1.9.tar.gz.
File metadata
- Download URL: lark-1.1.9.tar.gz
- Upload date:
- Size: 255.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15fa5236490824c2c4aba0e22d2d6d823575dcaf4cdd1848e34b6ad836240fba
|
|
| MD5 |
b94be44c1698e4801ea72cfcd284bcf0
|
|
| BLAKE2b-256 |
2ce1804b6196b3fbdd0f8ba785fc62837b034782a891d6f663eea2f30ca23cfa
|
File details
Details for the file lark-1.1.9-py3-none-any.whl.
File metadata
- Download URL: lark-1.1.9-py3-none-any.whl
- Upload date:
- Size: 111.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0dd3a87289f8ccbb325901e4222e723e7d745dbfc1803eaf5f3d2ace19cf2db
|
|
| MD5 |
d96eb52ea0bec042f94329bee65c2447
|
|
| BLAKE2b-256 |
e79ceef7c591e6dc952f3636cfe0df712c0f9916cedf317810a3bb53ccb65cdd
|