Implements the new configuration system for Nim. Uses Nim as a scripting language.
Procs
proc setupVM(module: PSym; cache: IdentCache; scriptName: string; graph: ModuleGraph): PEvalContext {...}{.raises: [OSError, IOError, EOFError, ValueError, Exception, ERecoverableError, KeyError], tags: [ ReadEnvEffect, WriteEnvEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ExecIOEffect, RootEffect, TimeEffect, WriteDirEffect].}
- Source Edit
proc runNimScript(cache: IdentCache; scriptName: AbsoluteFile; freshDefines = true; conf: ConfigRef) {...}{.raises: [Exception, ValueError, IOError, ERecoverableError, KeyError, OSError, EOFError], tags: [ RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect, WriteEnvEffect, ExecIOEffect, TimeEffect, WriteDirEffect].}
- Source Edit