Skip to content

Releases: lark-parser/lark

1.1.9 - Patch for a breaking change in 3.11.7 re module

10 Jan 08:35
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.8...1.1.9

1.1.8 - Output-stable Earley; Interactive standalone; various improvements

23 Oct 08:18
Compare
Choose a tag to compare

What's Changed

  • Populate the Token.end_* fields for ignored tokens by @jtbraun in #1309
  • Include .lark files in package data by @ptrcnull in #1308
  • Add an error message when using Lark.save() when parser!='lalr' by @erezsh in #1328
  • Add and improve docstrings by @erezsh in #1326
  • Small update to PR #1338 by @erezsh in #1339
  • Fix 1345 attempt two by @MegaIng in #1347
  • Earley now uses OrderedSet for better output stability by @erezsh in #1327
  • ContextualLexer now uses self.basic_lexer for easy extensibility (iss… by @erezsh in #1342
  • Improved typing around LALR and ParserState by @erezsh in #1343
  • Typing fixes. Mypy now produces 0 type errors by @erezsh in #1354
  • Standalone: Added support for interactive parser. by @erezsh in #1356

New Contributors

Full Changelog: 1.1.7...1.1.8

1.1.7 - Bugfix for release 1.1.6 in propagate_positions

20 Jul 19:19
e795810
Compare
Choose a tag to compare

1.1.6 - Strict mode, Python-style comments, Bugfixes

17 Jul 20:22
Compare
Choose a tag to compare

What's Changed - main points

What's Changed - PRs

New Contributors

Full Changelog: 1.1.5...1.1.6

1.1.5 - Fix AmbiguousExpander; Fix line information in InteractiveParser

06 Dec 12:55
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.4...1.1.5

1.1.4 - Added support for using Token in match statements, and other small fixes

02 Nov 01:48
9e5bd90
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.3...1.1.4

1.1.3 - Various fixes and refactors

11 Oct 08:29
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.2...1.1.3

1.1.2 - Small fixes; Support for printing trees with "rich"

01 Mar 14:19
Compare
Choose a tag to compare

Highlights

  • Tree instances now have a pretty print with the "rich" library, when doing rich.print(tree)
  • Bugfix for recursive regexes (with the "regex" library)
  • Refactors, cleanups, and better mypy support

What's Changed

  • Clean up tree templates implementation to reduce mypy errors by @plannigan in #1091
  • Remove redefinitions related to standalone parser by @plannigan in #1115
  • Added Tree.rich() method to make Tree a Rich renderable by @erezsh in #1117
  • Rename lexer_state->lexer_thread, and make a few adjustments for the benefit of Lark-Cython by @erezsh in #1118
  • Use isinstance() checks in expcetions match_examples() by @plannigan in #1065
  • change MAXREPEAT to int by @gruebel in #1120
  • Tests: Small fixes by @erezsh in #1122

New Contributors

Full Changelog: 1.1.1...1.1.2

Mypy fixes, and improvements to the InteractiveParser API

08 Feb 21:01
Compare
Choose a tag to compare

What's Changed

  • Add test cases for tree templates by @plannigan in #1096
  • 🖊 Fix Typo: plural "options" instead of singular "option" by @hf-kklein in #1101
  • PEP 8: Minor Code Style Improvements by @hf-kklein in #1102
  • Add Code Style Section to Contribution Guide by @hf-kklein in #1107
  • Fix MyPy Warnings in lark/tools/init.py by @hf-kklein in #1100
  • rename n to child when iterating over children by @hf-kklein in #1110
  • specify ignored mypy error by using type: ignore[error] in lark/tree.py and lark/utils.py by @hf-kklein in #1099
  • Add py.typed to package_data of lark package by @hf-kklein in #1109
  • InteractiveParser: Added iter_parse() method, for easier instrumentation by @erezsh in #1111

New Contributors

Full Changelog: 1.1.0...1.1.1

Version 1.1.0

31 Jan 08:05
Compare
Choose a tag to compare
  • Better support for typing and mypy. Includes generic tree typing (Thanks @plannigan!)

  • Improvements to python.lark (walrus operator, slashes in function params, and more). Now parses the entire Python 3.10 lib successfully

  • Bugfixes:

    • Transformer.__default__ not called in tree-less LALR mode (Issue #1029)
    • v_args failed to apply to class under standalone parser (Issue #1059)
    • maybe_placeholders incorrectly accumulated params when it encountered the | operator (Issue #1078)