Lark v0.8.0 Release Notes

Release Date: 2020-01-22 // over 4 years ago
  • - Better LALR

    ๐Ÿš€ The biggest change to this release is a new LALR engine, that is capable of dealing with a few edge cases that the previous parser couldn't.

    ๐Ÿ“œ This parser is supposed to be fully backwards-compatible with the previous one, but that is hard to verify!

    Thank you, @Raekye, for this great contribution to Lark!

    ๐Ÿ‘€ For more details, see issue #418

    - Transformers now visit tokens, as well as rules (an alternative to lexer_callbacks)

    Transformer now visit tokens, in addition to rules.

    Simply define a method with the correct name (uppercase, of course), and the transformer will visit your tokens before the rules that contain them.

    ๐ŸŽ It's possible to disable this, for backwards compatibility, or for the slight performance gain.

    - Other Changes

    โž• Added visit_topdown methods to Visitor classes

    Lark now allows line comments in its rule definitions

    ๐Ÿ‘ Better error messages

    ๐Ÿ‘Œ Improvements to documentation

    ๐Ÿ›  Bugfixes

    0๏ธโƒฃ maybe_placeholders is now the default (backwards-incompatible)** (REVERTED in 0.8.1)