A token generated by SimpleLexer
.
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.
An extremely simple JavaScript RegExp-based lexer.
A token generated by SimpleLexer
.
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";