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: GitHub parser shows a very recent upstream push (2026-06-03), and a new major version line was cut with v0.7.0 (2025-09-05), suggesting ongoing work rather than maintenance mode.
- Updates cadence: Based on visible tags, there was v0.7.0-preview.1 (2025-02-25) followed by v0.7.0 (2025-09-05), about 6.5 months later, with a much larger gap before that (last known published update from 2022-08-18).
AI summary generated Today
Recent updates
v0.7.0
9 months agov0.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
2/25/2025No 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
8/18/2022Release 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
1/28/2022v0.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
10/26/2021This 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.