@lezer/generator
Advanced tools
Changelog
1.2.3 (2023-04-28)
Make sure the Rollup plugin imports the rest of the library using a full file path.
Make --help
show the correct executable name.
Changelog
1.2.2 (2023-01-18)
Make sure require
isn't used as an identifier in generator output.
Changelog
1.2.1 (2023-01-13)
Fix an invalid optimization that sometimes led to incomplete token precedence tables, leading to incorrect tokenization.
Changelog
1.2.0 (2023-01-09)
Fix a bug where the error to use ()
to denote empty options in a choice expression was signalled even when that is what the input did.
Grammars can now declare @local tokens
blocks defining all the tokens that may appear in a set of state, and allowing @else
tokens that match everything else.
Changelog
1.1.2 (2022-11-07)
Fix a bug where the _ notation in tokens would match only half of a surrogate pair.
Fix a bug that caused invalid tokenizer data to be generated for character ranges ending in \uffff.
Changelog
1.1.1 (2022-08-03)
Emit enough information about external specializers to make ParserConfig.specializers
fixable.
Changelog
1.1.0 (2022-06-27)
Things that used to be written like std.digit
are now written @digit
. The old notation will remain available until a breaking release.
The new @eof
marker can be used in tokens to match the end of the input.
Changelog
0.16.0 (2022-04-20)
Fix an issue in the tokenizer for grammars that could cause it to run very slowly on some inputs.
A grammar can now include an @external propSource a from "b"
declaration to import a programmatically defined node prop source.