This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

1.9 KiB

Lark

A modern parsing library for Python

Overview

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

Lark’s code is hosted on Github: https://github.com/lark-parser/lark

Install

$ pip install lark-parser

Syntax Highlighting


Documentation Index