Changelog
1.4.2 (2024-07-27)
Fix a tree corruption issue caused by lookahead records in some circumstances.
Changelog
1.4.1 (2024-05-30)
Fix a bug where incremental parsing could inappropriately reuse a node when it ended in a repeat or optional part, and was followed by a sequence of skipped nodes longer than 25 characters.
Changelog
1.4.0 (2024-01-22)
The new InputStream.acceptTokenTo
method allows a tokenizer to create a token that ends at some absolute position.
Changelog
1.3.14 (2023-11-02)
Further reduce maximum parse depth—the old limit could still cause the tree building function to overflow the stack on V8 when all rules on the stack produce actual visible tree nodes.
Changelog
1.3.13 (2023-10-03)
The parser will now emit an error node when it reaches the end of the top rule but not the end of the input, and restarts parsing the top rule.
Fix an issue that could, when error-recovery happened after a skipped token, cause the parser to emit nodes whose start position was after their end position.
Changelog
1.3.12 (2023-09-22)
Reduce tree depth limit to avoid V8 overflowing its stack.
Changelog
1.3.11 (2023-09-19)
When parsing input ranges with gaps, don't treat the token after a gap as covering the entire gap.
Changelog
1.3.10 (2023-08-17)
Make this package usable in TypeScript setups using node16/nodenext resolution.
Changelog
1.3.9 (2023-07-03)
Fix another issue in the way local token groups and input gaps interact.