Helpers for binaries that use compiler passes, e.g.: nim, nimsuggest
proc loadConfigsAndProcessCmdLine(self: NimProg; cache: IdentCache;
conf: ConfigRef; graph: ModuleGraph): bool {....raises: [
OSError, IOError, Exception, KeyError, ValueError, ERecoverableError,
EOFError, ESuggestDone], tags: [ReadIOEffect, ReadDirEffect, ReadEnvEffect,
RootEffect, WriteIOEffect, WriteEnvEffect,
WriteDirEffect, TimeEffect, ExecIOEffect],
forbids: [].}proc loadConfigsAndRunMainCommand(self: NimProg; cache: IdentCache;
conf: ConfigRef; graph: ModuleGraph): bool {....raises: [
OSError, IOError, Exception, KeyError, ValueError, ERecoverableError,
EOFError, ESuggestDone], tags: [ReadIOEffect, ReadDirEffect, ReadEnvEffect,
RootEffect, WriteIOEffect, WriteEnvEffect,
WriteDirEffect, TimeEffect, ExecIOEffect],
forbids: [].}
© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/cmdlinehelper.html