@lezer/generator
Advanced tools
Changelog
1.7.1 (2024-06-19)
Fix a bug that broken references to tokens in local token groups.
Changelog
1.7.0 (2024-03-12)
Include type declarations for the Rollup plugin.
Named or @export
-ed specialized tokens are now available in the terms file.
The generator now emits a warning when rules generate a lot of different variants (usually due to a combinatory explosion of ?
and |
operators).
Changelog
1.6.0 (2024-01-08)
Fix an issue where the generator could output invalid JavaScript when a specialization used a string that started with a number.
Adjust TypeScript output to compile with recent tsc versions. Add a test for zero-length node mounts
Support an exportName
option to the Rollup plugin.
Changelog
1.5.0 (2023-08-20)
Fix a build issue that made the ES version of the Rollup plugin fail to load.
The new typeScript
option to buildParserFile
(and --typeScript
option to lezer-generator) makes the tool emit TypeScript code.
Changelog
1.4.2 (2023-08-17)
Fix a regression in the build process that caused the Rollup plugin to not be part of the npm package.
Changelog
1.4.1 (2023-08-17)
Make this package usable in TypeScript setups with node16/nodenext resolution.
Changelog
1.4.0 (2023-08-11)
BuildOptions.contextTracker
now takes a function, so that the code that produces it has access to the term IDs.
Changelog
1.3.0 (2023-06-15)
The test utilities can now be imported as "@lezer/generator/test"
.