Python/pythonrun/compile

Source   Edit  

Procs

proc Py_CompileStringObject(str: string; filename: PyStrObject; mode: Mode;
                            flags = initPyCompilerFlags(); optimize = -1): PyObject {.
    ...raises: [], tags: [RootEffect], forbids: [].}
Source   Edit  
proc Py_SourceAsString(cmd: PyObject; funcname, what: string;
                       cf: PyCompilerFlags; cmd_copy: var PyObject;
                       res: var string): PyBaseErrorObject {....raises: [],
    tags: [RootEffect], forbids: [].}
_Py_SourceAsString Source   Edit  

Exports

Mode, LexerEscaper, withNextMode, INSIDE_FSTRING_EXPR_AT_TOP, withNextMode, new_tokenizer_mode, enter_FSTRING_EXPR, tokenizer_mode_kind_t, indentStack, popMode, new_tokenizer_mode, cont, tokenizer_mode, withinFStringExpr, Lexer, string_kind_t, lineNo, parseModeEnum, INSIDE_FSTRING, getMode, INSIDE_FSTRING_EXPR, |, toIntFlag, |, &, |, &, toIntFlag, toIntFlag, PyCF, &, PyCF_MASK, &, &, initPyCompilerFlags, PyCompilerFlags, |, CO, PyCodeFutureOption, |, &, &, &, PyObject, newPyString, asUTF8, newPyStrIterSimple, PyUnicode_AsUTF8AndSize, handleFormatExc, hash, formatValue, newPyString, rfind, PyStrFmt, raisePyFormatExc, asUTF8, newUnicodeUnicodeVariant, newAsciiUnicodeVariant, find, newPyStrIter, setPyFormatExc, eqAscii, ==, PyStrIterObject, substring, addPyStrObjectMagic, bindFormatValue, newPyStrObjectMagic, implMethodGenTargetAndStartStop, add, iterPyStrObjectMagic, checkConsistency, find, ==, ofExactPyStrObject, fastCopyCharacters, PyStrObject, countPyStrObjectMethod, joinAsRunes, newUnicodeVariant, newPyStrF, newUnicodeVariant, itemSize, repr, newUnicodeVariant, strPyStrObjectMagic, kind, UnicodeVariant, PyUnicode_FromOrdinal, newPyString, containsPyStrObjectMagic, getitemPyStrObjectMagic, formatValue, indexPyStrObjectMethod, newUnicodeUnicodeVariant, join, &, implMethodGenTargetAndStartStop, pyStrObjectType, PyUnicode_InternMortal, ofPyStrObject, doBothKindOk, iterPyStrIterObjectMagic, rfind, newAsciiUnicodeVariantOfCap, rfind, substringUnsafe, [], asUTF8AndSize, newPyStr, eqPyStrObjectMagic, &, newUnicodeUnicodeVariantOfCap, asUTF8AndSize, newUnicodeVariant, $, newPyStr, PyObject, isAscii, PyDictObject, DUformatDUPystrObjectMethod, find, handleFormatExc, findPyStrObjectMethod, cmpAscii, pyStrIterObjectType, PyUnicode_READ, &, reprPyStrObjectMagic, implFormatValue, joinPyStrObjectMethod, len, rfind, handleValueErrorAsPyFormatExc, &, newPyAscii, lenPyStrObjectMagic, hashPyStrObjectMagic, PyArg_NoKw, newUnicodeOrAsciiUnicodeVariant, formatValue, PyUnicode_FromOrdinal, doKindsWith2It, newPyString, newUnicodeVariant, join, PyUnicode_FromOrdinal, $, newUnicodeUnicodeVariant, find, data, rfindPyStrObjectMethod, ofPyStrIterObject, newPyString, formatValue, itemSize, FormatPyObjectError, toRunes, MAX_UNICODE, &, newAsciiUnicodeVariant, hash, iternextPyStrIterObjectMagic, len, newPyAscii, PyArg_NoKw, &, newPyStrSimple, genFormat, ofExactPyStrIterObject, PyUnicode_fromStringAndSize