Types
ArraysModule = object of CatchableError
ColorsModule = object of CatchableError
OSModule = object of CatchableError
SourceCode = distinct string
StringsModule = object of CatchableError
SystemModule = object of CatchableError
Vars
localModule {.threadvar.}: Module
stdlib: Stdlib
Procs
proc exists(lib: string): bool {....raises: [], tags: [], forbids: [].}
- Checks if if lib exists in Stdlib
proc initModuleSystem() {....raises: [], tags: [], forbids: [].}
proc std(lib: string): (Module, SourceCode) {....raises: KeyError, tags: [], forbids: [].}
- Retrieves a module from Stdlib