Lark v0.11.1 Release Notes

Release Date: 2020-11-16 // about 4 years ago

Previous changes from v0.10.0

    ๐Ÿ“š 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. Added ForestTransformer and TreeForestTranformer.

    ๐Ÿ›  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 the accepts attribute, which contains a list of terminals that would be accepted by the parser instead (in addition to the expects 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.