bds.js
Version:
A simple interpreter written to simulate and run BDScript Language in JavaScript
19 lines (18 loc) • 540 B
TypeScript
import { Context } from "./Context";
import { Environment } from "./Environment";
interface RuntimeOptions {
alwaysStrict: boolean;
trimOutput: boolean;
}
declare class Runtime {
global: Environment;
private contexts;
private evaluator;
options: RuntimeOptions;
constructor();
runInput(fileName: string, input: string): Promise<any>;
prepareContext(fileName: string): Context;
getContext(fileName: string): Context;
private _prepareGlobal;
}
export { Runtime, RuntimeOptions };