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 SimpleLexerToken

A token generated by SimpleLexer.

Type Parameters

T extends keyof any

Properties

The token type identifier.

The image is the text value of this token.

The starting offset, relative to index 0 of the input text.

The offset the next token should start with, relative to index 0 of the input text.

Add Package

deno add @seally/simple-lexer

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @seally/simple-lexer

Import symbol

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

Add Package

yarn dlx jsr add @seally/simple-lexer

Import symbol

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

Add Package

pnpm dlx jsr add @seally/simple-lexer

Import symbol

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

Add Package

bunx jsr add @seally/simple-lexer

Import symbol

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