UNPKG

lxa

Version:

A lexical analysis / regular expression engine written in TypeScript

12 lines (11 loc) 371 B
import { Epsilon } from './epsilon'; export declare type InputType = string | Epsilon; export declare class State { nextStatesMap: Map<InputType, Set<State>>; private accepted; alias: string; constructor(accepted?: boolean, alias?: string); setNext(input: InputType, state: State): void; isAccepted(): boolean; epsilonClosure(): Set<State>; }