tim/engine/std

Types

Arg = tuple[name: string, value: Node]
ArraysModule = object of CatchableError
ColorsModule = object of CatchableError
NimCall = proc (args: openArray[Arg]; returnType: NodeType = ntLitVoid): Node
OSModule = object of CatchableError
SourceCode = distinct string
StringsModule = object of CatchableError
SystemModule = object of CatchableError

Vars

localModule {.threadvar.}: Module
stdlib: Stdlib

Procs

proc call(lib, fnName: string; args: seq[Arg]): Node {.
    ...raises: [Exception, KeyError], tags: [RootEffect], forbids: [].}
Retrieves a Nim proc from module
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
proc toNimSeq(node: Node): seq[string] {....raises: [], tags: [], forbids: [].}