Changelog History
Page 1
-
v0.11.1
November 16, 2020 -
v0.11.0 Changes
November 16, 2020๐ LALR parser
๐ The LALR parser now supports priority in rules, as a way to resolve collision errors
๐ Improvements to the standalone tool, including more command-line options, like optional compression for the json data.
๐ Improvements to the puppet error handling interface
๐ Better error reporting on LALR collisions
๐ Bugfixes in Earley
Misc
โ Added support for syntax highlighting in Atom
๐ Fixes and improvements for the
cache
option.cache=True
now uses a temporary directory instead of working directory.๐ Lark can now be imported directly from a zip (See: ed5c8ec)
โ Added more terminals to the grammar library (available for %import).
๐ Nearley tools now supports case insensitive strings
๐ Deprecated some interfaces
๐ Improvements to docs, stubs, and various bugfixes
๐ง Thanks to @MegaIng for helping with Lark's maintenance, and to @ldbo, @chanicpanic, @michael-k, @ThatXliner and everyone else for their help and contributions.
-
v0.10.0 Changes
September 21, 2020๐ Complete overhaul of documentation. Now using sphinx to generate API docs from docstrings. (commit 0664cbd. Thank you @chsasank !)
- Many improvements and additions to documentation
๐ New and friendlier Earley SPPF interface! (commit 555b268. Thank you @chanicpanic !)
โ Added the
ambiguity='forest'
option. AddedForestTransformer
andTreeForestTranformer
.๐ Various Bugfixes to improve the handling of ambiguous results.
โ Read the docs here: https://lark-parser.readthedocs.io/en/latest/forest.html
๐ New Vim syntax highlighting for Lark (https://github.com/lark-parser/vim-lark-syntax Thank you @omega16 !)
๐ Lark now loads faster from cache (commit 7dc0017)
๐ Terminals can now be composed of regexps and strings with different flags, if using Python 3.6+ (commit e6fc3c9)
โ Added support for parsing byte-strings, with the
use_bytes
flag (commit 9ee8428).๐
UnexpectedToken
exception now has theaccepts
attribute, which contains a list of terminals that would be accepted by the parser instead (in addition to theexpects
attribute, which is guided by the lexer and may include terminals that won't be accepted by the parser) (commit a7bcd0b)๐ Allow multiline regexes with the
x
flag (commit 9923987)0๏ธโฃ Lark no longer uses the default logger. Instead uses
lark.LOGGER
. (commit 7010f96)๐ฒ Lark now notifies on unused terminals/rules through
logging.debug
.๐ Standalone generator now creates smaller files (without comments and docstrings). Also undergone various fixes. (commit bf2d9bf)
Wheel distribution due to (somewhat) popular demand.
๐ Lots of small bugfixes and improvements!
๐ Many thanks to @MegaIng for his continued work on many of these new features and fixes, and to everyone else who contributed to Lark and helped make it even better.
-
v0.9.0 Changes
July 01, 2020โ Added error handling to LALR!
on_error
option toLark.parse()
.
โ Read here: https://lark-parser.readthedocs.io/en/latest/classes/#larkparse- Parser now comes with a puppet for advanced error handling.
โ Read here: https://lark-parser.readthedocs.io/en/latest/classes/#parserpuppet
๐ Support for better regexps with the
regex
module, when usingLark(..., regex=True)
โ Read here: https://lark-parser.readthedocs.io/en/latest/classes/#using-unicode-character-classes-with-regex -
v0.8.9 Changes
June 16, 2020๐ The last two releases were wrong. I apologize.
๐ Hopefully that's the last of it, and we'll be back on track with periodic and accurate releases.
-
v0.8.8
June 13, 2020 -
v0.8.7
June 13, 2020 -
v0.8.6 Changes
June 10, 2020๐ The main features for this release:
Grammar caching : It's now possible to cache the results of the LALR grammar analysis, for x2 to x3 faster loading. Use
Lark(..., cache=True)
or specify a file name. See here: https://lark-parser.readthedocs.io/en/latest/classes/Grammar templates : Added support for grammar "functions" that expand in preprocessing. No docs yet, but see here for examples:
โ https://github.com/lark-parser/lark/blob/master/tests/test_parser.py#L845Lark online IDE : Technically not a feature, but it's possible to run Lark in the browser. Now we also have a simple IDE on github pages: https://lark-parser.github.io/lark/ide/app.html
Other changes:
๐ Improved performance for large grammars
๐จ More debug prints when in debug mode
๐ Better support for PyInstaller
๐ Lots of bugfixes: mypy stubs, v_args, docs, and more.
-
v0.8.5
March 29, 2020 -
v0.8.3 Changes
March 28, 2020- Added the
g_regex_flags
option, to allow applying flags to all terminals. - Fixed
end_pos
for Earley, when usingpropagate_positions
- ๐ Fixes for mypy
- ๐ Better docs
- Added the