UNPKG

@gobstones/gobstones-parser

Version:
35 lines 1.08 kB
export declare class SourceReader { private _filename; private _string; private _index; private _line; private _column; private _regions; constructor(filename: string, string: string); _clone(): SourceReader; get filename(): string; get line(): number; get column(): number; get region(): string; consumeCharacter(): SourceReader; consumeString(string: string): SourceReader; consumeInvisibleCharacter(): SourceReader; consumeInvisibleString(string: string): SourceReader; startsWith(sub: string | any[]): boolean; eof(): boolean; peek(): string; beginRegion(region: string): SourceReader; endRegion(): SourceReader; } export declare const UnknownPosition: SourceReader; export declare type Input = string | Record<string, string> | string[]; export declare class MultifileReader { private _filenames; private _input; private _index; constructor(input: Input); moreFiles(): boolean; nextFile(): void; readCurrentFile(): SourceReader; } //# sourceMappingURL=reader.d.ts.map