(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')])