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.2.2.tar.gz
(252.1 kB
view details)
Built Distribution
lark-1.2.2-py3-none-any.whl
(111.0 kB
view details)
File details
Details for the file lark-1.2.2.tar.gz
.
File metadata
- Download URL: lark-1.2.2.tar.gz
- Upload date:
- Size: 252.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca807d0162cd16cef15a8feecb862d7319e7a09bdb13aef927968e45040fed80 |
|
MD5 | 99760ed81904c56b2db2b7ab7723063e |
|
BLAKE2b-256 | af60bc7622aefb2aee1c0b4ba23c1446d3e30225c8770b38d7aedbfb65ca9d5a |
File details
Details for the file lark-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: lark-1.2.2-py3-none-any.whl
- Upload date:
- Size: 111.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2276486b02f0f1b90be155f2c8ba4a8e194d42775786db622faccd652d8e80c |
|
MD5 | 4af85318e79793d50b56aa290bb0854d |
|
BLAKE2b-256 | 2d00d90b10b962b4277f5e64a78b6609968859ff86889f5b898c1a778c06ec00 |