a modern parsing library
Project Links
Meta
Author: Erez Shinan
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
Programming Language
- Python :: 2.7
- Python :: 3
Topic
- Software Development :: Libraries :: Python Modules
- Text Processing :: General
- Text Processing :: Linguistic
License
- OSI Approved :: MIT License
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!
0.12.0
Aug 30, 2021
0.11.3
May 03, 2021
0.11.2
Feb 16, 2021
0.11.1
Nov 16, 2020
0.11.0
Nov 16, 2020
0.11.0rc1
Nov 02, 2020
0.10.1
Oct 13, 2020
0.10.0
Sep 21, 2020
0.9.0
Jul 01, 2020
0.8.9
Jun 16, 2020
0.8.8
Jun 13, 2020
0.8.7
Jun 13, 2020
0.8.6
Jun 10, 2020
0.8.5
Mar 29, 2020
0.8.4
Mar 29, 2020
0.8.3
Mar 28, 2020
0.8.2
Mar 07, 2020
0.8.1
Jan 22, 2020
0.8.0
Jan 22, 2020
0.7.8
Nov 01, 2019
0.7.7
Oct 03, 2019
0.7.6a1
Sep 15, 2019
0.7.5
Sep 06, 2019
0.7.4
Aug 29, 2019
0.7.3
Aug 14, 2019
0.7.2
Jul 30, 2019
0.7.1
May 04, 2019
0.7.0
Mar 28, 2019
0.6.7
Mar 09, 2019
0.6.6
Jan 20, 2019
0.6.5
Oct 16, 2018
0.6.4
Aug 22, 2018
0.6.3
Aug 03, 2018
0.6.2
Jul 18, 2018
0.6.1
Jul 11, 2018
0.6.0
Jul 09, 2018
0.5.6
Apr 05, 2018
0.5.5
Mar 08, 2018
0.5.4
Feb 18, 2018
0.5.3
Jan 24, 2018
0.5.2
Jan 10, 2018
0.5.1
Jan 02, 2018
0.5.0
Jan 02, 2018
0.4.1
Oct 31, 2017
0.4.0
Oct 30, 2017
0.3.7
Sep 13, 2017
0.3.6
Aug 23, 2017
0.3.5
Aug 23, 2017
0.3.4
Aug 22, 2017
0.3.3
Aug 22, 2017
0.3.2
Aug 22, 2017
0.3.1
Aug 04, 2017
0.3.0
Aug 04, 2017
0.2.10
Jul 26, 2017
0.2.9
Jul 24, 2017
0.2.8
Jul 17, 2017
0.2.7
Apr 18, 2017
0.2.6
Apr 05, 2017
0.2.5
Apr 05, 2017
0.2.4
Apr 05, 2017
0.2.3
Mar 20, 2017
0.2.2
Mar 13, 2017
0.2.1
Mar 09, 2017
0.1.2
Feb 15, 2017
0.1.1
Feb 14, 2017
0.1.0
Feb 11, 2017