UNPKG

@cheap-glitch/jsonast

Version:

A JSON to AST parser which allows error recovery.

19 lines (18 loc) 471 B
import type * as Types from './types'; export declare class CharacterStream { private readonly text; private _offset; private _line; private _column; constructor(text: string); get ch(): string; get eoi(): boolean; get line(): number; get column(): number; get offset(): number; get pos(): Types.PositionPart; expect(text: string): void; next(): void; accept(text: string): void; skip(text: string): boolean; }