Selaa lähdekoodia

tiny README update

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Erez Shinan 7 vuotta sitten
vanhempi
commit
9c1a81b709
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. +3
    -2
      README.md

+ 3
- 2
README.md Näytä tiedosto

@@ -2,10 +2,10 @@


Lark is a modern general-purpose parsing library for Python. Lark is a modern general-purpose parsing library for Python.


Lark focuses on simplicity and power. It lets you choose between two parsing algorithms:
Lark focuses on simplicity, power, and speed. It lets you choose between two parsing algorithms:


- Earley : Parses all context-free grammars (even ambiguous ones)! It is the default. - Earley : Parses all context-free grammars (even ambiguous ones)! It is the default.
- LALR(1): Only LR grammars. Outperforms PLY and most if not all other pure-python parsing libraries.
- LALR(1): Only LR grammars. Outperforms PLY and most (if not all) other pure-python parsing libraries.


Both algorithms are written in Python and can be used interchangably with the same grammar (aside for algorithmic restrictions). See "Comparison to other parsers" for more details. Both algorithms are written in Python and can be used interchangably with the same grammar (aside for algorithmic restrictions). See "Comparison to other parsers" for more details.


@@ -71,6 +71,7 @@ These features are planned to be implemented in the near future:


- Grammar composition (in cases that the tokens can reliably signify a grammar change) - Grammar composition (in cases that the tokens can reliably signify a grammar change)
- Parser generator - create a small parser, indepdendent of Lark, to embed in your project. - Parser generator - create a small parser, indepdendent of Lark, to embed in your project.
- Optimizations in both the parsers and the lexer


## Comparison to other parsers ## Comparison to other parsers




Ladataan…
Peruuta
Tallenna