Skip to main content

Built and signed on GitHub Actions

An extremely simple JavaScript RegExp-based lexer.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
a week ago (0.1.2)
f
escapeRegExp

Escape the string for insertion into a RegExp pattern without specialmeanings.

c
SimpleLexer

A very basic lexer that simply just takes string and RegExp patterns andspits out the associated tokens with no advanced bells and whistles.

T
SimpleLexerDefinitions

Type representing acceptable formats to define token definitions for aSimpleLexer

T
SimpleLexerToken

A token generated by SimpleLexer.

T
SimpleLexerTokenDefinition

A definition for a token type for SimpleLexer.