js-slang
Version:
Javascript-based implementations of Source, written in Typescript
11 lines (10 loc) • 636 B
TypeScript
import * as es from 'estree';
import OldClosure from '../interpreter/closure';
import Closure from '../cse-machine/closure';
import { Chapter, Context, Environment, Variant } from '../types';
export declare function mockContext(chapter?: Chapter, variant?: Variant): Context;
export declare function mockImportDeclaration(): es.ImportDeclaration;
export declare function mockRuntimeContext(): Context;
export declare function mockClosure(cseMachineClosure: true): Closure;
export declare function mockClosure(cseMachineClosure?: false): OldClosure;
export declare function mockEnvironment(context: Context, name?: string): Environment;