OptionalbufferThe position in the buffer where the function should stop reading. Defaults to 0.
OptionallengthThe length of the wrapping node. The end offset of the last child is used when not provided.
OptionalmaxThe maximum buffer length to use. Defaults to
DefaultBufferLength.
OptionalminThe first node type that indicates repeat constructs in this grammar.
The node types to use.
OptionalreusedAn optional array holding reused nodes that the buffer can refer to.
OptionalstartThe position the tree should start at. Defaults to 0.
The id of the top node type.
The buffer or buffer cursor to read the node data from.
When this is an array, it should contain four values for every node in the tree.
NodeSet.Parent nodes should appear after child nodes in the array. As an example, a node of type 10 spanning positions 0 to 4, with two children, of type 11 and 12, might look like this: