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
Python 2 & 3 compatible
Automatic line & column tracking
Standard library of terminals (strings, numbers, names, etc.)
Import grammars from Nearley.js
Extensive test suite
And much more!
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
Built Distribution
Hashes for lark-0.10.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb919a7326a76af36e2e2cb5ac6c1be6723bba83945a0a33e6d533070cbaccc7 |
|
MD5 | a2047277476789c2402740758731d6b7 |
|
BLAKE2b-256 | 40a11914b7d23a19271280710323786d46507ea740c0bf7aae58e8620b5a1df3 |