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_parser-0.11.0rc1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76af9dd5cf9de35c79d2a6f2541e71e5c96df3a6da745f484f8d6e1fdaf2eabf |
|
MD5 | 9aff87ba92a1a270ba628f50637fb8aa |
|
BLAKE2b-256 | ddde5010d38a05635a7a9488cb0a9be0a05dc03026bddd69408132f1ebd6cba6 |