jsonast
Version:
a json to ast parser which allows error recovery
19 lines (18 loc) • 475 B
TypeScript
import * as Types from './types';
export declare class CharacterStream {
private text;
private _offset;
private _line;
private _column;
constructor(text: string);
readonly ch: string;
readonly eoi: boolean;
readonly line: number;
readonly column: number;
readonly offset: number;
readonly pos: Types.PositionPart;
expect(text: string): void;
next(): void;
accept(text: string): void;
skip(text: string): boolean;
}