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)
type alias SimpleLexerDefinitions

Type representing acceptable formats to define token definitions for a SimpleLexer

Properties

Token definitions for this lexer. Can be specified as an array of token definition objects or

Set this to true to make the lexer patterns ignore casing.

This cannot be set on a per-token basis, so if you need mixed case sensitivity the token patterns must handle this by themselves (note that flags on the pattern RegExps are ignored).

Add Package

deno add @seally/simple-lexer

Import symbol

import { type SimpleLexerDefinitions } from "@seally/simple-lexer";

---- OR ----

Import directly with a jsr specifier

import { type SimpleLexerDefinitions } from "jsr:@seally/simple-lexer";

Add Package

npx jsr add @seally/simple-lexer

Import symbol

import { type SimpleLexerDefinitions } from "@seally/simple-lexer";

Add Package

yarn dlx jsr add @seally/simple-lexer

Import symbol

import { type SimpleLexerDefinitions } from "@seally/simple-lexer";

Add Package

pnpm dlx jsr add @seally/simple-lexer

Import symbol

import { type SimpleLexerDefinitions } from "@seally/simple-lexer";

Add Package

bunx jsr add @seally/simple-lexer

Import symbol

import { type SimpleLexerDefinitions } from "@seally/simple-lexer";