leac is a lightweight lexer and tokenizer library. It lets you define rules (by strings or regular expressions) and run a stateless lexer over an input string, producing a tokens array plus completion information. Useful for building the tokenization step that feeds a parser, and it can be paired with the peberminta parser combinators toolkit.
Project status
- Actively maintained: The upstream GitHub activity includes a push on 2026-06-03, and the most recent published tag (v0.7.0 on 2025-09-05) indicates ongoing development rather than long-term dormancy.
- Update cadence: Published version tags appear irregular, with a long gap from v0.6.0 (2022-08-18) to v0.7.0-preview.1 (2025-02-25) and then v0.7.0 (2025-09-05), followed by additional upstream pushes in 2026 (suggesting work continues even if tags are infrequent).
AI summary generated
Recent updates
v0.7.0
v0.7.0 appears to be a tooling and compatibility release, with the main documented goals being Node 20 targeting, performance improvements (with internal benchmarking), and some documentation and export related adjustments. The provided release notes are missing, but CHANGELOG.md in the diff documents the expected behavior changes. The actual code diff visible here mostly shows documentation and build/tooling changes, with no clear public API signature changes for createLexer or the rule types beyond what the docs already suggest.
Breakingv0.7.0-preview.1
No release notes were provided for v0.7.0-preview.1. The repository diff, however, shows substantial API and type refactoring, plus runtime behavior changes around rule validation and replacement handling.
v0.6.0
Release v0.6.0 was published on 2022-08-18, but no release notes were provided by the publisher. As a result, the specific code, API, behavior, or compatibility changes introduced in this version cannot be determined from the supplied data.
v0.5.1
v0.5.1 is primarily a documentation and tooling update release. The diff shows edits to README/deno README plus several interface documentation pages and JSDoc comments in src/leac.ts, alongside a set of devDependency version bumps.
v0.5.0
This release is tagged v0.5.0, but the publisher provided no release notes (none available in the supplied data). As a result, no specific API changes, breaking changes, bug fixes, or dependency updates can be reliably extracted from the release notes alone.