lexer-state
Version:
Lightweight state machine library to define and manage state transition declaratively
10 lines (9 loc) • 385 B
TypeScript
export declare class StateError extends Error {
constructor(message?: "undefined state transition");
}
export declare class LexerStateHookError extends Error {
constructor(message?: "machine is undefined, must initialize useLexerState(machine:?) with a machine");
}
export declare class MachineNotFoundError extends Error {
constructor(message?: "machine is undefined");
}