31cd840b90
- Update to 1.3.1 * Bugfix: Restore support for custom input, alongside text and TextSlice by @erezsh in (#1562) * Keep sdist in sync with git (include all files in source build, including docs, tests and examples) by @chanicpanic in (#1561) - from version 1.3.0 * Lark can now parse in sections of strings, using TextSlice, as a faster alternative to creating a "copy-slice" with s[i:j]. * Added support to match on Tree instances * When serializing a Lark instance, added the option to include the grammar object (before compilation). * Added convenience method Tree.find_token() * Bugfix of an edge case in Earley related to representation of ambiguity. * Bugfixes in the standalone parser related to imports * Bugfix in indenter - now dedents always contain line information * Various small bugfixes (see PR list below) - from version 1.2.2 * Bugfix: Earley now respects ambiguity='resolve' again. (#1444) - Drop py314-functools-partial.patch, merged upstream
Matej Cepl2025-11-29 22:12:14 +00:00
17c0f780a7
Accepting request 1306310 from devel:languages:python
Ana Guerrero2025-09-23 14:05:33 +00:00
bfb3418032
- update to 1.2.2: * Bugfix: Earley now respects ambiguity='resolve' again. - update to 1.2.1: * Dropped support for Python versions lower than 3.8 * Several bugfixes in the Earley algorithm, related to suppressed ambiguities * Improved performance in InteractiveParser.accepts() * Give "Shaping the tree" clear sub-headings * Fix for when providing a transformer with a Token * Pin types-regex to a working version * Add Outlines to list of projects using Lark * Code coverage: Update Python version * Attempt to solve performance problems in accepts() * Docs: Added Indenter * Clean up test_parser.py, use xFail instead of skip where appropriate * Update config and drop python < 3.8 * BUGFIX Earley: Now yielding a previously repressed ambiguity * Fix SymbolNode.end for completed tokens * Disable ForestToParseTree cache when ambiguity='resolve' * Bugfix for issue #1434Dirk Mueller2024-10-03 08:32:27 +00:00
67bcb9ddd5
Accepting request 1138493 from devel:languages:python
Ana Guerrero2024-01-15 21:10:56 +00:00
233220b3ae
- update to 1.1.9: * Use MAXWIDTH instead of MAXREPEAT when available * Fix nested list markdown syntax in how_to_use.md * Run tests against Python 3.12
Dirk Mueller2024-01-13 20:25:20 +00:00
273fec7546
Accepting request 1134338 from devel:languages:python
Ana Guerrero2023-12-21 22:37:49 +00:00
df1b1ca179
- update to 1.1.8: * Populate the Token.end_* fields for ignored tokens * Include .lark files in package data * Add an error message when using Lark.save() when parser!='lalr' * Add and improve docstrings * Small update to PR #1338 * Fix 1345 attempt two * Earley now uses OrderedSet for better output stability * ContextualLexer now uses self.basic_lexer for easy extensibility (iss… * Improved typing around LALR and ParserState * Typing fixes. Mypy now produces 0 type errors * Standalone: Added support for interactive parser. - update to 1.1.7: * Bugfix in propagate_positions (issue #1304) - update to 1.1.6: * Added strict-mode, enabled by strict=True, implemented using interegular by @MegaIng * Read more here: https://lark- parser.readthedocs.io/en/latest/how_to_use.html#strict-mode * Cache: Replace md5 hashing with sha256. * Support for Python-style comments in Lark grammar * Updates to python.lark * Bugfixes and cleanup - Update to v1.1.5 - Update to v1.1.4 - Update to v1.1.3 - Rename to python-lark * The standalone parser is now MPL2, instead of GPL. The Mozilla
Dirk Mueller2023-12-20 22:00:42 +00:00
df7315e9cb
Accepting request 1119951 from devel:languages:python
Ana Guerrero2023-10-24 18:07:53 +00:00
0e1196b0f7
- Remove not needed python-Js2Py BuildRequires
Daniel Garcia2023-10-24 10:46:32 +00:00