rulescribe
Version:
Typescript rule engine
26 lines (25 loc) • 658 B
TypeScript
import EngineScope from "./scope";
import { ILexer } from "./interfaces";
export default class Engine {
private readonly lexer;
private currentToken;
constructor(lexer: ILexer);
private eat;
private factor;
private term;
private expr;
private expr_math;
private assignment;
private statement;
private ifStatement;
private forLoop;
private whileLoop;
private getCondition;
private getBody;
private callFunction;
private ruleDefenition;
private functionDefinition;
parse(engineScop: EngineScope): Promise<void>;
fire(engineScope: EngineScope): Promise<void>;
reset(): void;
}