a modern parsing library
Project description
t_lark is a modern general-purpose parsing library for Python. With t_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.4, only Python versions 3.14 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
t_lark-1.4.0.tar.gz
(291.3 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
t_lark-1.4.0-py3-none-any.whl
(119.8 kB
view details)
File details
Details for the file t_lark-1.4.0.tar.gz.
File metadata
- Download URL: t_lark-1.4.0.tar.gz
- Upload date:
- Size: 291.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44eb27badf1ad777e1609ed1ceadf3eb0fa28fdb7e3a8977a7e946dff8b4f968
|
|
| MD5 |
fe3ca9b93fdc4750b9d69f301bc9164d
|
|
| BLAKE2b-256 |
ee5fd84a98ad6240795f1cdd4620b6e1a02a69ef5deeaf19b9278719c4cb8d5b
|
File details
Details for the file t_lark-1.4.0-py3-none-any.whl.
File metadata
- Download URL: t_lark-1.4.0-py3-none-any.whl
- Upload date:
- Size: 119.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7181867092bc292258baee979b88e87813a3c79440bd5b995ba1c389ad6095b0
|
|
| MD5 |
1959dc10ee0546c6c9368f30f41c468f
|
|
| BLAKE2b-256 |
771140400fdc6d9f947e37465a2937afffac2fccc68194301c530798c98a5553
|