Skip to content

Tags: lezer-parser/lr

Tags

1.4.2

Version 1.4.2

### Bug fixes

Fix a tree corruption issue caused by lookahead records in some circumstances.

1.4.1

Version 1.4.1

### Bug fixes

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.

1.4.0

Version 1.4.0

### New features

The new `InputStream.acceptTokenTo` method allows a tokenizer to create a token that ends at some absolute position.

1.3.14

Version 1.3.14

### Bug fixes

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.

1.3.13

Version 1.3.13

### Bug fixes

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.

1.3.12

Version 1.3.12

### Bug fixes

Reduce tree depth limit to avoid V8 overflowing its stack.

1.3.11

Version 1.3.11

### Bug fixes

When parsing input ranges with gaps, don't treat the token after a gap as covering the entire gap.

1.3.10

Version 1.3.10

### Bug fixes

Make this package usable in TypeScript setups using node16/nodenext resolution.

1.3.9

Version 1.3.9

### Bug fixes

Fix another issue in the way local token groups and input gaps interact.

1.3.8

Version 1.3.8

### Bug fixes

Fix an issue that caused incorrect trees to be emitted when a forced reduction happened inside a skipped term.