thaw-grammar
Version:
Implementations of the grammars of several programming languages, including LISP, Scheme, Prolog, and the Lambda Calculus.
25 lines • 899 B
TypeScript
import { IEnvironmentFrame } from './environment-frame';
import { IFunctionDefinition } from './function-definition';
export interface IGlobalInfoForInterpreter {
initialize(): void;
evaluateToString(str: string): string;
loadPreset(presetName: string): string;
clearPrintedText(): void;
getPrintedText(): string;
}
export interface IGlobalInfo<T> extends IGlobalInfoForInterpreter {
globalEnvironment: IEnvironmentFrame<T>;
functionDefinitions: Map<string, IFunctionDefinition<T>>;
dynamicScoping: boolean;
debug: boolean;
falseValue: T;
trueValue: T;
booleanAsValue(value: boolean): T;
valueIsFalse(value: T): boolean;
valueIsInteger(value: T): boolean;
valueAsInteger(value: T): number;
integerAsValue(value: number): T;
loadPresets(): void;
print(evaluatedArguments: T[]): void;
}
//# sourceMappingURL=iglobal-info.d.ts.map