Skip to content

Latest commit

 

History

History
122 lines (90 loc) · 2.9 KB

index.rst

File metadata and controls

122 lines (90 loc) · 2.9 KB

Welcome to Lark's documentation!

.. toctree::
   :maxdepth: 2
   :caption: Overview
   :hidden:

   philosophy
   features
   parsers

.. toctree::
   :maxdepth: 2
   :caption: Tutorials & Guides
   :hidden:

   json_tutorial
   how_to_use
   how_to_develop
   recipes
   examples/index


.. toctree::
   :maxdepth: 2
   :caption: Reference
   :hidden:

   grammar
   tree_construction
   classes
   visitors
   forest
   tools



Lark is a modern parsing library for Python. Lark can parse any context-free grammar.

Lark provides:

  • Advanced grammar language, based on EBNF
  • Three parsing algorithms to choose from: Earley, LALR(1) and CYK
  • Automatic tree construction, inferred from your grammar
  • Fast unicode lexer with regexp support, and automatic line-counting

Install Lark

$ pip install lark

Syntax Highlighting

Resources