A very basic lexer that simply just takes string and RegExp
patterns and
spits out the associated tokens with no advanced bells and whistles.
new
SimpleLexer(definition: D)
D extends SimpleLexerDefinitions
An extremely simple JavaScript RegExp-based lexer.
A very basic lexer that simply just takes string and RegExp
patterns and
spits out the associated tokens with no advanced bells and whistles.
SimpleLexer(definition: D)
D extends SimpleLexerDefinitions
Add Package
deno add @seally/simple-lexer
Import symbol
import { SimpleLexer } from "@seally/simple-lexer";
---- OR ----
Import directly with a jsr specifier
import { SimpleLexer } from "jsr:@seally/simple-lexer";
Add Package
npx jsr add @seally/simple-lexer
Import symbol
import { SimpleLexer } from "@seally/simple-lexer";
Add Package
yarn dlx jsr add @seally/simple-lexer
Import symbol
import { SimpleLexer } from "@seally/simple-lexer";
Add Package
pnpm dlx jsr add @seally/simple-lexer
Import symbol
import { SimpleLexer } from "@seally/simple-lexer";
Add Package
bunx jsr add @seally/simple-lexer
Import symbol
import { SimpleLexer } from "@seally/simple-lexer";