Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.8...1.1.9
Token.end_*
fields for ignored tokens by @jtbraun in https://github.com/lark-parser/lark/pull/1309
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.7...1.1.8
Bugfix in propagate_positions (issue #1304)
strict=True
, implemented using interegular by @MegaIng
[*x]
by @evtn in https://github.com/lark-parser/lark/pull/1232
codespell
hook by @kianmeng in https://github.com/lark-parser/lark/pull/1244
if TYPE_CHECKING:
branches by @MegaIng in https://github.com/lark-parser/lark/pull/1278
PEP 621
-compliant pyproject.toml
. by @KOLANICH in https://github.com/lark-parser/lark/pull/1157
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.5...1.1.6
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.4...1.1.5
__all__
to __init__
by @aspizu in https://github.com/lark-parser/lark/pull/1200
__lark_meta__()
by @erezsh in https://github.com/lark-parser/lark/pull/1203
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.3...1.1.4
Add user to cache filename; better handle cache load/save failures by @klauer in https://github.com/lark-parser/lark/pull/1179
refactor: add 'usedforsecurity=False' arg to hashlib.md5 usage by @cquick01 in https://github.com/lark-parser/lark/pull/1190
Create lark/grammars/init.py by @chanicpanic in https://github.com/lark-parser/lark/pull/1171
Adjust imports for Python 3.11 by @The-Compiler in https://github.com/lark-parser/lark/pull/1140
Fix for issue #1173 by @erezsh in https://github.com/lark-parser/lark/pull/1198
Add match stmt support to python.lark by @joseph-e-k in https://github.com/lark-parser/lark/pull/1123
Added match stmt support to python.lark by @MegaIng in https://github.com/lark-parser/lark/pull/1016
Linting to fix minor issues by @Erotemic in https://github.com/lark-parser/lark/pull/1128
Simplify lexer: Use Match.lastgroup instead of lastindex by @erezsh in https://github.com/lark-parser/lark/pull/1129
Fix confusing import in examples by @JonasLoos in https://github.com/lark-parser/lark/pull/1138
Move iter_subtrees_topdown into standalone by @camgunz in https://github.com/lark-parser/lark/pull/1137
Fix 1146: use the class's get instead of the instance's get by @MegaIng in https://github.com/lark-parser/lark/pull/1147
fix: remove Python 2 legacy packaging code by @henryiii in https://github.com/lark-parser/lark/pull/1148
Fix for PR #1149 by @erezsh in https://github.com/lark-parser/lark/pull/1150
Old link for sppf is no longer valid. Point to web archive instead. by @patrickhuber in https://github.com/lark-parser/lark/pull/1159
Fix ForestToPyDotVisitor by @chanicpanic in https://github.com/lark-parser/lark/pull/1167
Close file-like objects to address ResourceWarning. by @shawnbrown in https://github.com/lark-parser/lark/pull/1183
Minor adjustments to PR #1179 by @erezsh in https://github.com/lark-parser/lark/pull/1189
Adjustments for PR #1152 by @erezsh in https://github.com/lark-parser/lark/pull/1191
Remove trailing whitespace by @bcr in https://github.com/lark-parser/lark/pull/1196
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.2...1.1.3
Tree
instances now have a pretty print with the "rich" library, when doing rich.print(tree)
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.1...1.1.2
n
to child
when iterating over children
by @hf-kklein in https://github.com/lark-parser/lark/pull/1110
type: ignore[error]
in lark/tree.py and lark/utils.py by @hf-kklein in https://github.com/lark-parser/lark/pull/1099
py.typed
to package_data of lark package by @hf-kklein in https://github.com/lark-parser/lark/pull/1109
iter_parse()
method, for easier instrumentation by @erezsh in https://github.com/lark-parser/lark/pull/1111
Full Changelog: https://github.com/lark-parser/lark/compare/1.1.0...1.1.1
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)