github lark-parser/lark 0.6.6
Experimental "maybe_placeholders" feature, and several minor improvements

latest releases: 1.2.2, 1.2.1, 1.1.9...
5 years ago

(Points to the wrong commit, due to technical issues. Actually refers to commit 13ddc43)

This release includes:

  • Better error reporting

  • Several bugfixes

  • A new experimental feature: "maybe_placeholders", which replaces missing "maybe"s with a None, instead of removing them.

For example:

>>> p = Lark("""!start: "a"? "b"? "c"? """, maybe_placeholders=True)
>>> p.parse('b')
Tree(start, [None, Token(B, 'b'), None])
>>> p.parse('ac')
Tree(start, [Token(A, 'a'), None, Token(C, 'c')])

Don't miss a new lark release

NewReleases is sending notifications on new releases.