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 classesLark 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)