import { NSourceIncrement } from '@cafetextual/nlist/dist/src/nsource/NSourceIncremet'; import ParseMgr from "./ParseMgr"; import ParseModel from "./ParseModel"; import NSourceList from "@cafetextual/nlist/dist/src/nsource/NSourceList"; import AnyonicParseResult from "./AnyonicParseResult"; import { int } from "@cafetextual/nlist/dist/src/ntree/types"; import AnnotatableGrammarSpec from './AnnotatableGammarSpec'; import SourceNListWrapper from '@cafetextual/nlist/dist/src/nsource/SourceNListWrapper'; /** * Stateful parser. * * - words with an immutable * - Paramatarized by A, the annotation type * */ export default class AnyonicIncrementalParser { constructor(source: NSourceList, aspec: AnnotatableGrammarSpec); parser: ParseMgr; model: ParseModel; aspec: AnnotatableGrammarSpec; source: NSourceList; content: SourceNListWrapper; suri: string; static createParseModel(source: NSourceList, aspec: AnnotatableGrammarSpec): ParseModel; private createParser(model); doParseAll(): AnyonicParseResult; doIncrementalParse(inc: NSourceIncrement): AnyonicParseResult; protected doParse_low(n: int, isAsync?: boolean): AnyonicParseResult; private toParserErrorResult(); private toParserFailAnnotaion(); private toParseResult(); private toAnnotations(data, map, annotators, content); private showObject(o); }