17 lines
332 B
TypeScript
17 lines
332 B
TypeScript
import { Match } from '../match';
|
|
|
|
export interface Recogniser {
|
|
match(input: Context): Match | null;
|
|
name(input?: Context): string;
|
|
language?(): string;
|
|
}
|
|
|
|
export interface Context {
|
|
fByteStats: number[];
|
|
fC1Bytes: boolean;
|
|
fRawInput: Uint8Array;
|
|
fRawLength: number;
|
|
fInputBytes: Uint8Array;
|
|
fInputLen: number;
|
|
}
|