Hacker GitHub

← All repos

lark-parser/lark

View on GitHub ↗ ★ 6,023 Python

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.

22 mentions on Hacker News by 14 people: 11 stories, 11 comments · first 2017-02-14 · latest 2026-07-19

Mentions per year 22 mentions · busiest year 2021 (7)
20082026
  1. Some years ago I used the Python library Lark ( https://github.com/lark-parser/lark ) to parse my programming language. It lets you write your grammar in basically EBNF, builds parse trees (that you can automatically reduce by removing…
  2. To add to your survey, I have been reading the lark documentation https://github.com/lark-parser/lark and like the cut of it's jib, I have not used it yet as I don't really have any projects that need a full parser.
  3. …all major IDEs, and even in github itself. For example, here is Lark's built-in grammar for Python: https://github.com/lark-parser/lark/blob/master/lark/grammar... The rationale is that it's more terse and has less visual clutter than a…
  4. If you are trying out parsing in python, I would recommend giving [Lark]( https://github.com/lark-parser/lark ) a try. I have used it for smallish projects are its really easy to use especially with the Earley parser.
  5. When I surveyed what was out there last year I wrote down these 3 as the most interesting: https://github.com/lark-parser/lark https://github.com/neogeny/TatSu https://github.com/dabeaz/sly Lark seems to be the one with traction.
  6. …Of course I could be totally wrong and they might just be dumping pure text in, shutter. [0]: https://github.com/lark-parser/lark
  7. …My company uses it in production. It is by far the easiest parser generator I've ever used. 1. https://github.com/lark-parser/lark
  8. …. No transcript, and I'm not going to listen to it just to figure out the context. https://github.com/lark-parser/lark "implements both Earley(SPPF) and LALR(1)". Kegler, the author of that timeline I linked to, is the author of Marpa. Home
  9. …a low-level parser/lexer by using a higher-level format, like context-free grammar (see Lark https://github.com/lark-parser/lark ). Define and maintain a grammar is much easier.
    comment by izgzhen · 2021-03-31 · in Turing Award goes to Aho and Ullman
  10. Hi, I'm the author of this Python parsing library: https://github.com/erezsh/lark I would like to port it (or parts of it) to Rust, for fun and speed. Since the grammars are EBNF, it means the same grammars can work in both Rust and Python…
    comment by erezsh · 2017-10-15 · in Rust 1.21
  11. …parse-forests for ambiguity. Just in case you're interested in seeing another implementation: https://github.com/erezsh/lark/blob/master/lark/parsers/earl...