lxa
Version:
A lexical analysis / regular expression engine written in TypeScript
27 lines (26 loc) • 783 B
TypeScript
import { State, InputType } from './state';
export declare class StateOp {
protected start: State | null;
protected end: State | null;
constructor();
getStartState(): State | null;
getEndState(): State | null;
setNext(input: InputType, state: StateOp): void;
}
export declare class SingleInputState extends StateOp {
constructor(input: InputType, accepted?: boolean);
}
export declare class ConcatState extends StateOp {
private a;
private b;
constructor(a: StateOp, b: StateOp);
}
export declare class UnionState extends StateOp {
private a;
private b;
constructor(a: StateOp, b: StateOp, accepted?: boolean);
}
export declare class ClosureState extends StateOp {
private a;
constructor(a: StateOp, accepted?: boolean);
}