lark-parser 0.12.0


pip install lark-parser

  Latest version

Released: Aug 30, 2021

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!

Wheel compatibility matrix

Platform Python 2 Python 3
any

Files in release

Extras:
Dependencies: