thaw-grammar
Version:
Implementations of the grammars of several programming languages, including LISP, Scheme, Prolog, and the Lambda Calculus.
21 lines • 1.03 kB
TypeScript
import { IParser, ITokenizer } from 'thaw-interpreter-types';
import { GlobalInfoBase } from '../../../common/domain-object-model/global-info-base';
import { ISmalltalkClass, ISmalltalkGlobalInfo, ISmalltalkUserValue, ISmalltalkValue } from './interfaces/iexpression';
export declare class SmalltalkGlobalInfo extends GlobalInfoBase<ISmalltalkValue> implements ISmalltalkGlobalInfo {
readonly classDict: Map<string, ISmalltalkClass>;
readonly objectInstance: ISmalltalkUserValue;
constructor(options?: {
parser?: IParser;
tokenizer?: ITokenizer;
});
get falseValue(): ISmalltalkValue;
get trueValue(): ISmalltalkValue;
valueIsFalse(value: ISmalltalkValue): boolean;
valueIsTrue(value: ISmalltalkValue): boolean;
valueIsInteger(value: ISmalltalkValue): boolean;
valueAsInteger(value: ISmalltalkValue): number;
integerAsValue(value: number): ISmalltalkValue;
loadPresets(): void;
evaluate(str: string): ISmalltalkValue;
}
//# sourceMappingURL=global-info.d.ts.map