scriptconfig

Implements the new configuration system for Nim. Uses Nim as a scripting language.

Imports

ast, modules, idents, passes, condsyms, options, sem, llstream, vm, vmdef, commands, wordrecg, modulegraphs, pathutils

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

© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/scriptconfig.html