11// Variable determining chapter of Source is contained in this file.
22
3+ import { schemeVisualise } from './alt-langs/scheme/scheme-mapper'
34import * as scheme_libs from './alt-langs/scheme/scm-slang/src/stdlib/source-scheme-library'
4- import {
5- scheme1Prelude ,
6- scheme2Prelude ,
7- scheme3Prelude ,
8- scheme4Prelude ,
9- schemeFullPrelude
10- } from './stdlib/scheme.prelude'
115import { GLOBAL , JSSLANG_PROPERTIES } from './constants'
126import { call_with_current_continuation } from './cse-machine/continuations'
137import Heap from './cse-machine/heap'
8+ import { Transformers } from './cse-machine/interpreter'
9+ import { cset_apply , cset_eval } from './cse-machine/scheme-macros'
1410import * as list from './stdlib/list'
1511import { list_to_vector } from './stdlib/list'
1612import { listPrelude } from './stdlib/list.prelude'
1713import { localImportPrelude } from './stdlib/localImport.prelude'
1814import * as misc from './stdlib/misc'
1915import * as parser from './stdlib/parser'
2016import * as pylib from './stdlib/pylib'
17+ import {
18+ scheme1Prelude ,
19+ scheme2Prelude ,
20+ scheme3Prelude ,
21+ scheme4Prelude ,
22+ schemeFullPrelude
23+ } from './stdlib/scheme.prelude'
2124import * as stream from './stdlib/stream'
2225import { streamPrelude } from './stdlib/stream.prelude'
2326import { createTypeEnvironment , tForAll , tVar } from './typeChecker/utils'
@@ -33,9 +36,6 @@ import {
3336} from './types'
3437import * as operators from './utils/operators'
3538import { stringify } from './utils/stringify'
36- import { schemeVisualise } from './alt-langs/scheme/scheme-mapper'
37- import { cset_apply , cset_eval } from './cse-machine/scheme-macros'
38- import { Transformers } from './cse-machine/interpreter'
3939
4040export class EnvTree {
4141 private _root : EnvTreeNode | null = null
@@ -262,7 +262,7 @@ export const importExternalSymbols = (context: Context, externalSymbols: string[
262262 ensureGlobalEnvironmentExist ( context )
263263
264264 externalSymbols . forEach ( symbol => {
265- defineSymbol ( context , symbol , GLOBAL [ symbol ] )
265+ defineSymbol ( context , symbol , GLOBAL [ symbol as keyof typeof GLOBAL ] )
266266 } )
267267}
268268
@@ -324,7 +324,7 @@ export const importBuiltins = (context: Context, externalBuiltIns: CustomBuiltIn
324324 // Short param names for stringified version of math functions
325325 const parameterNames = [ ...'abcdefghijklmnopqrstuvwxyz' ]
326326 for ( const name of mathLibraryNames ) {
327- const value = Math [ name ]
327+ const value = Math [ name as keyof typeof Math ]
328328 if ( typeof value === 'function' ) {
329329 let paramString : string
330330 let minArgsNeeded = undefined
0 commit comments