lezer-tree
Advanced tools
Changelog
0.9.0 (2020-06-08)
Drop NodeProp.delim
in favor of NodeProp.openedBy
/closedBy
.
Changelog
0.8.2 (2020-02-26)
Fix a bug that caused applyChanges
to include parts of the old tree that weren't safe to reuse.
Changelog
0.8.1 (2020-02-14)
Fix bug that would cause tree balancing of deep trees to produce corrupt output.
Changelog
0.8.0 (2020-02-03)
Bump version along with the rest of the lezer packages.
Changelog
0.7.1 (2020-01-23)
In applyChanges
, make sure the tree is collapsed all the way to the
nearest non-error node next to the change.
Changelog
0.7.0 (2020-01-20)
Fix a bug that prevented balancing of repeat nodes when there were skipped nodes present between the repeated elements (which ruined the efficiency of incremental parses).
TreeBuffer
objects now have an iterate
function.
Buffers can optionally be tagged with an (unnamed) node type to allow reusing them in an incremental parse without wrapping them in a tree.
Tree.build
now takes its arguments wrapped in an object. It also expects the buffer content to conform to from lezer 0.7.0's representation of repeated productions.
The repeated
node prop was removed (the parser generator now encodes repetition in the type ids).
Changelog
0.5.1 (2019-10-22)
NodeProp.add
now also allows a selector object to be passed.