import PObjectMap, { PRuleResult } from './../org/subalternproductions/seepResource/dsl/parser/PObjectMap'; import IncrementalParser from "../org/subalternproductions/seepResource/dsl/parser/IncrementalParser"; import ParseModel from "./ParseModel"; import { int } from "@cafetextual/nlist/dist/src/ntree/types"; import ParserState from '../org/subalternproductions/seepResource/dsl/parsertooling/ParserState'; import ParseStackItem from '../org/subalternproductions/seepResource/dsl/parsertooling/ParseStackItem'; import IParserDebug from '../org/subalternproductions/seepResource/dsl/parsertooling/IParserDebug'; export default class ParseMgr implements IParserDebug { data: Object; model: ParseModel; ip: IncrementalParser; isValid(): boolean; isDone(): boolean; hasErrored(): boolean; atBreakpoint(): boolean; static create(model: ParseModel): ParseMgr; lastValid(): int; lastValidLine(): int; getLastInvalidated(): int; private _lastInvalidated; /** * invalidate (if necessary) * * returns true if an invalidatation has been performed * (often it is unnecessary, for instance if parsing has errored before the * line being invalidated) * */ invalidate(n: int): boolean; isStartable(): boolean; stop(): ParseMgr; step(): ParseMgr; parseLine(n?: int): ParseMgr; cont(n?: int): ParseMgr; start(): ParseMgr; private start_low(step, cont, maxIterations); map(): PObjectMap; result(): PRuleResult; errorObject(): Object; private static toSp(v); parsedSoFar: string; private updateParsed(); private _stateAtBreakpoint; debug(state: ParserState): boolean; stack: Array; stackItem: ParseStackItem; detail: string; setStackIndex(index: int): ParseMgr; includeRules: boolean; includeElements: boolean; includeNamedRules: boolean; toDebugStack(): Array; toStatus(): string; resultObject(): Object; clear(): void; }