UNPKG

consys

Version:

consys is a flexible tool to evaluate models using generic and readable constraints.

26 lines (25 loc) 646 B
export default class TextProcessor<M, S> { private readonly interpreter; private readonly source; private functions; private textTokens; private current; private start; constructor(source: string, functions?: { [name: string]: Function; }); process(model: M, state: S, functions?: { [name: string]: Function; }, rescan?: boolean): string; private scan; private scanToken; private scanVariable; private scanArguments; private scanFunction; private addToken; private generateAST; private isAtEnd; private advance; private peek; private peekNext; }