Erez Shinan 8b182b37c0 | 7 years ago | |
---|---|---|
examples | 7 years ago | |
lark | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago |
Lark is a modern general-purpose Python parsing library, that focuses on simplicity and power.
Lark accepts grammars as EBNF and lets you choose between two parsing algorithms:
Both algorithms are pure-python implementations and can be used interchangably (aside for algorithmic restrictions).
Lark can automagically build an AST from your grammar, without any more code on your part.
Separates code from grammar: The result is parsers that are cleaner and easier to read & work with.
Automatically builds a tree (AST): Trees are always simpler to work with than state-machines. (But if you want to provide a callback for efficiency reasons, Lark lets you do that too)
Follows Python’s Idioms: Beautiful is better than ugly. Readability counts.
Lark uses the GPL3 license.
If you have any questions or want to contribute, please email me at erezshin at gmail com.