Main Module that runs NPyhon Interpreter
An JavaScript-targeted online demo is available at <https://play.nimpylib.org>
Imports
-
npython/Python/compile, npython/Python/coreconfig, npython/Python/lifecycle, npython/Python/getversion, npython/Parser/lexer, npython/Parser/parser, npython/Parser/apis, npython/Objects/bundle, npython/Utils/utils, npython/Utils/compat, npython/Utils/fileio, npython/Utils/compat_io_os, npython/Python/pythonrun, npython/Python/pythonrun/utils, npython/Python/main, npython/Python/main/utils
Types
PyExecutor = object nextPrompt*: string flags*: PyCompilerFlags
- unstable. for karax Source Edit
Procs
proc feed(py: var PyExecutor; input: string) {....raises: [], tags: [RootEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], forbids: [].}
- Source Edit
proc interactiveShell() {....raises: [IOError], tags: [WriteIOEffect, RootEffect, ReadDirEffect, ReadIOEffect], forbids: [].}
- Source Edit
proc newPyExecutor(filename = Fstdin): PyExecutor {....raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- this shall be singleton Source Edit