pytron-kit 0.3.12__py3-none-macosx_11_0_universal2.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (419) hide show
  1. pytron/__init__.py +112 -0
  2. pytron/application.py +562 -0
  3. pytron/apputils/__init__.py +0 -0
  4. pytron/apputils/chrome_ipc.py +203 -0
  5. pytron/apputils/codegen.py +261 -0
  6. pytron/apputils/config.py +303 -0
  7. pytron/apputils/deadmansswitch.py +47 -0
  8. pytron/apputils/extras.py +76 -0
  9. pytron/apputils/native.py +148 -0
  10. pytron/apputils/shell.py +73 -0
  11. pytron/apputils/windows.py +286 -0
  12. pytron/cli.py +384 -0
  13. pytron/commands/__init__.py +0 -0
  14. pytron/commands/android.py +28 -0
  15. pytron/commands/build.py +26 -0
  16. pytron/commands/doctor.py +221 -0
  17. pytron/commands/engine.py +23 -0
  18. pytron/commands/frontend.py +60 -0
  19. pytron/commands/harvest.py +112 -0
  20. pytron/commands/helpers.py +239 -0
  21. pytron/commands/info.py +50 -0
  22. pytron/commands/init.py +521 -0
  23. pytron/commands/install.py +294 -0
  24. pytron/commands/login.py +130 -0
  25. pytron/commands/package.py +228 -0
  26. pytron/commands/plugin.py +442 -0
  27. pytron/commands/run.py +312 -0
  28. pytron/commands/scan.py +210 -0
  29. pytron/commands/show.py +23 -0
  30. pytron/commands/uninstall.py +150 -0
  31. pytron/commands/utils.py +42 -0
  32. pytron/commands/workflow.py +95 -0
  33. pytron/console.py +133 -0
  34. pytron/core.py +18 -0
  35. pytron/dependencies/WebView2Loader.dll +0 -0
  36. pytron/dependencies/__init__.py +1 -0
  37. pytron/dependencies/pytron_native.so +0 -0
  38. pytron/engines/chrome/adapter.py +445 -0
  39. pytron/engines/chrome/engine.py +576 -0
  40. pytron/engines/chrome/forge.py +147 -0
  41. pytron/engines/chrome/shell/package.json +8 -0
  42. pytron/engines/chrome/shell/preload.js +12 -0
  43. pytron/engines/chrome/shell/shell.js +534 -0
  44. pytron/exceptions.py +36 -0
  45. pytron/inspector.py +201 -0
  46. pytron/inspector_ui.py +512 -0
  47. pytron/installer/Installation.nsi +236 -0
  48. pytron/installer/header.bmp +0 -0
  49. pytron/installer/pytron.ico +0 -0
  50. pytron/installer/sidebar.bmp +0 -0
  51. pytron/llms.md +98 -0
  52. pytron/manifests/README.md +29 -0
  53. pytron/manifests/windows-utf8.manifest +44 -0
  54. pytron/menu.py +128 -0
  55. pytron/nsis-setup.exe +0 -0
  56. pytron/pack/__init__.py +0 -0
  57. pytron/pack/assets.py +131 -0
  58. pytron/pack/compilers.py +289 -0
  59. pytron/pack/crystal.py +297 -0
  60. pytron/pack/graph.py +377 -0
  61. pytron/pack/inference.py +157 -0
  62. pytron/pack/installers.py +402 -0
  63. pytron/pack/introspect.py +357 -0
  64. pytron/pack/metadata.py +213 -0
  65. pytron/pack/modules.py +618 -0
  66. pytron/pack/nuitka.py +108 -0
  67. pytron/pack/pipeline.py +107 -0
  68. pytron/pack/pyinstaller.py +176 -0
  69. pytron/pack/rust_engine.py +273 -0
  70. pytron/pack/secure.py +309 -0
  71. pytron/pack/secure_loader/bin/pytron_rust_bootloader +0 -0
  72. pytron/pack/secure_loader/icon.ico +0 -0
  73. pytron/pack/utils.py +110 -0
  74. pytron/pack/virtual_root.py +124 -0
  75. pytron/platforms/__init__.py +0 -0
  76. pytron/platforms/android/__init__.py +3 -0
  77. pytron/platforms/android/android.py +103 -0
  78. pytron/platforms/android/builder.py +736 -0
  79. pytron/platforms/android/ops/build.py +79 -0
  80. pytron/platforms/android/ops/init.py +63 -0
  81. pytron/platforms/android/ops/run.py +79 -0
  82. pytron/platforms/android/ops/sync.py +770 -0
  83. pytron/platforms/android/ops/utils.py +8 -0
  84. pytron/platforms/android/shell/README.md +30 -0
  85. pytron/platforms/android/shell/app/build.gradle +64 -0
  86. pytron/platforms/android/shell/app/src/main/AndroidManifest.xml +29 -0
  87. pytron/platforms/android/shell/app/src/main/assets/python/main.py +86 -0
  88. pytron/platforms/android/shell/app/src/main/assets/python/python314.zip +0 -0
  89. pytron/platforms/android/shell/app/src/main/cpp/CMakeLists.txt +25 -0
  90. pytron/platforms/android/shell/app/src/main/cpp/include/Python.h +155 -0
  91. pytron/platforms/android/shell/app/src/main/cpp/include/abstract.h +915 -0
  92. pytron/platforms/android/shell/app/src/main/cpp/include/audit.h +30 -0
  93. pytron/platforms/android/shell/app/src/main/cpp/include/bltinmodule.h +14 -0
  94. pytron/platforms/android/shell/app/src/main/cpp/include/boolobject.h +54 -0
  95. pytron/platforms/android/shell/app/src/main/cpp/include/bytearrayobject.h +44 -0
  96. pytron/platforms/android/shell/app/src/main/cpp/include/bytesobject.h +66 -0
  97. pytron/platforms/android/shell/app/src/main/cpp/include/ceval.h +145 -0
  98. pytron/platforms/android/shell/app/src/main/cpp/include/codecs.h +176 -0
  99. pytron/platforms/android/shell/app/src/main/cpp/include/compile.h +22 -0
  100. pytron/platforms/android/shell/app/src/main/cpp/include/complexobject.h +30 -0
  101. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/abstract.h +104 -0
  102. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/audit.h +8 -0
  103. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/bytearrayobject.h +38 -0
  104. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/bytesobject.h +42 -0
  105. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/cellobject.h +50 -0
  106. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/ceval.h +43 -0
  107. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/classobject.h +71 -0
  108. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/code.h +340 -0
  109. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/compile.h +50 -0
  110. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/complexobject.h +33 -0
  111. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/context.h +107 -0
  112. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/critical_section.h +154 -0
  113. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/descrobject.h +62 -0
  114. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/dictobject.h +105 -0
  115. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/fileobject.h +16 -0
  116. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/fileutils.h +16 -0
  117. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/floatobject.h +27 -0
  118. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/frameobject.h +35 -0
  119. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/funcobject.h +185 -0
  120. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/genobject.h +56 -0
  121. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/import.h +30 -0
  122. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/initconfig.h +334 -0
  123. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/listobject.h +53 -0
  124. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/lock.h +74 -0
  125. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/longintrepr.h +184 -0
  126. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/longobject.h +89 -0
  127. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/memoryobject.h +50 -0
  128. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/methodobject.h +66 -0
  129. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/modsupport.h +26 -0
  130. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/monitoring.h +269 -0
  131. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/object.h +493 -0
  132. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/objimpl.h +104 -0
  133. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/odictobject.h +43 -0
  134. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/picklebufobject.h +31 -0
  135. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pthread_stubs.h +105 -0
  136. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic.h +614 -0
  137. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_gcc.h +615 -0
  138. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_msc.h +1197 -0
  139. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_std.h +1112 -0
  140. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyctype.h +39 -0
  141. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pydebug.h +38 -0
  142. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyerrors.h +132 -0
  143. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyfpe.h +15 -0
  144. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyframe.h +45 -0
  145. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyhash.h +54 -0
  146. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pylifecycle.h +89 -0
  147. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pymem.h +84 -0
  148. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pystate.h +275 -0
  149. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pystats.h +194 -0
  150. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pythonrun.h +96 -0
  151. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pythread.h +43 -0
  152. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pytime.h +27 -0
  153. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/setobject.h +71 -0
  154. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/traceback.h +13 -0
  155. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/tracemalloc.h +32 -0
  156. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/tupleobject.h +40 -0
  157. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/unicodeobject.h +773 -0
  158. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/warnings.h +20 -0
  159. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/weakrefobject.h +66 -0
  160. pytron/platforms/android/shell/app/src/main/cpp/include/critical_section.h +16 -0
  161. pytron/platforms/android/shell/app/src/main/cpp/include/datetime.h +267 -0
  162. pytron/platforms/android/shell/app/src/main/cpp/include/descrobject.h +100 -0
  163. pytron/platforms/android/shell/app/src/main/cpp/include/dictobject.h +108 -0
  164. pytron/platforms/android/shell/app/src/main/cpp/include/dynamic_annotations.h +499 -0
  165. pytron/platforms/android/shell/app/src/main/cpp/include/enumobject.h +17 -0
  166. pytron/platforms/android/shell/app/src/main/cpp/include/errcode.h +45 -0
  167. pytron/platforms/android/shell/app/src/main/cpp/include/exports.h +105 -0
  168. pytron/platforms/android/shell/app/src/main/cpp/include/fileobject.h +41 -0
  169. pytron/platforms/android/shell/app/src/main/cpp/include/fileutils.h +62 -0
  170. pytron/platforms/android/shell/app/src/main/cpp/include/floatobject.h +54 -0
  171. pytron/platforms/android/shell/app/src/main/cpp/include/frameobject.h +20 -0
  172. pytron/platforms/android/shell/app/src/main/cpp/include/genericaliasobject.h +14 -0
  173. pytron/platforms/android/shell/app/src/main/cpp/include/import.h +103 -0
  174. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/atomic.h +392 -0
  175. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/internal.h +969 -0
  176. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/prim.h +329 -0
  177. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/track.h +147 -0
  178. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/types.h +721 -0
  179. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc.h +565 -0
  180. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_abstract.h +61 -0
  181. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_asdl.h +112 -0
  182. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ast.h +945 -0
  183. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ast_state.h +271 -0
  184. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_atexit.h +31 -0
  185. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_audit.h +35 -0
  186. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_backoff.h +133 -0
  187. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bitutils.h +186 -0
  188. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_blocks_output_buffer.h +321 -0
  189. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_brc.h +73 -0
  190. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bytes_methods.h +82 -0
  191. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bytesobject.h +149 -0
  192. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_c_array.h +39 -0
  193. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_call.h +206 -0
  194. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_capsule.h +17 -0
  195. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_cell.h +75 -0
  196. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ceval.h +390 -0
  197. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ceval_state.h +48 -0
  198. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_code.h +671 -0
  199. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_codecs.h +76 -0
  200. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_compile.h +230 -0
  201. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_complexobject.h +34 -0
  202. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_condvar.h +93 -0
  203. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_context.h +59 -0
  204. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_critical_section.h +237 -0
  205. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_crossinterp.h +406 -0
  206. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_crossinterp_data_registry.h +41 -0
  207. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_debug_offsets.h +379 -0
  208. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_descrobject.h +28 -0
  209. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dict.h +410 -0
  210. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dict_state.h +28 -0
  211. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dtoa.h +40 -0
  212. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_emscripten_signal.h +30 -0
  213. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_emscripten_trampoline.h +70 -0
  214. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_exceptions.h +40 -0
  215. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_faulthandler.h +100 -0
  216. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_fileutils.h +320 -0
  217. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_fileutils_windows.h +98 -0
  218. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_floatobject.h +49 -0
  219. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_flowgraph.h +47 -0
  220. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_format.h +27 -0
  221. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_frame.h +61 -0
  222. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_freelist.h +111 -0
  223. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_freelist_state.h +70 -0
  224. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_function.h +53 -0
  225. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_gc.h +378 -0
  226. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_genobject.h +43 -0
  227. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_getopt.h +22 -0
  228. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_gil.h +66 -0
  229. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_objects.h +34 -0
  230. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_objects_fini_generated.h +1592 -0
  231. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_strings.h +854 -0
  232. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_hamt.h +113 -0
  233. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_hashtable.h +150 -0
  234. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_import.h +141 -0
  235. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_importdl.h +139 -0
  236. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_index_pool.h +36 -0
  237. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_initconfig.h +197 -0
  238. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_instruction_sequence.h +83 -0
  239. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_instruments.h +127 -0
  240. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interp.h +109 -0
  241. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interp_structs.h +977 -0
  242. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpframe.h +401 -0
  243. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpframe_structs.h +95 -0
  244. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpolation.h +26 -0
  245. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_intrinsics.h +51 -0
  246. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_jit.h +29 -0
  247. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_list.h +81 -0
  248. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_llist.h +106 -0
  249. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_lock.h +236 -0
  250. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_long.h +319 -0
  251. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_magic_number.h +305 -0
  252. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_memoryobject.h +20 -0
  253. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_mimalloc.h +69 -0
  254. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_modsupport.h +99 -0
  255. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_moduleobject.h +62 -0
  256. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_namespace.h +21 -0
  257. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object.h +1029 -0
  258. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_alloc.h +71 -0
  259. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_deferred.h +32 -0
  260. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_stack.h +95 -0
  261. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_state.h +49 -0
  262. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_obmalloc.h +702 -0
  263. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_obmalloc_init.h +66 -0
  264. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_opcode_metadata.h +2117 -0
  265. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_opcode_utils.h +90 -0
  266. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_optimizer.h +318 -0
  267. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_parking_lot.h +97 -0
  268. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_parser.h +78 -0
  269. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pathconfig.h +26 -0
  270. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyarena.h +68 -0
  271. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyatomic_ft_wrappers.h +174 -0
  272. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pybuffer.h +21 -0
  273. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyerrors.h +213 -0
  274. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyhash.h +91 -0
  275. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pylifecycle.h +136 -0
  276. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymath.h +205 -0
  277. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymem.h +145 -0
  278. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymem_init.h +103 -0
  279. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pystate.h +339 -0
  280. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pystats.h +21 -0
  281. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pythonrun.h +68 -0
  282. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pythread.h +172 -0
  283. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_qsbr.h +172 -0
  284. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_range.h +21 -0
  285. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime.h +63 -0
  286. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_init.h +239 -0
  287. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_init_generated.h +1589 -0
  288. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_structs.h +310 -0
  289. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_semaphore.h +67 -0
  290. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_setobject.h +41 -0
  291. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_signal.h +108 -0
  292. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_sliceobject.h +20 -0
  293. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_stackref.h +791 -0
  294. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_stats.h +97 -0
  295. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_strhex.h +39 -0
  296. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_structs.h +88 -0
  297. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_structseq.h +40 -0
  298. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_symtable.h +201 -0
  299. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_sysmodule.h +32 -0
  300. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_template.h +26 -0
  301. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_time.h +334 -0
  302. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_token.h +110 -0
  303. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_traceback.h +111 -0
  304. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tracemalloc.h +164 -0
  305. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tstate.h +88 -0
  306. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tuple.h +75 -0
  307. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typedefs.h +18 -0
  308. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typeobject.h +155 -0
  309. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typevarobject.h +28 -0
  310. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ucnhash.h +36 -0
  311. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unicodeobject.h +308 -0
  312. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unicodeobject_generated.h +3132 -0
  313. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unionobject.h +26 -0
  314. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uniqueid.h +57 -0
  315. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uop_ids.h +335 -0
  316. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uop_metadata.h +1204 -0
  317. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_warnings.h +21 -0
  318. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_weakref.h +133 -0
  319. pytron/platforms/android/shell/app/src/main/cpp/include/intrcheck.h +23 -0
  320. pytron/platforms/android/shell/app/src/main/cpp/include/iterobject.h +24 -0
  321. pytron/platforms/android/shell/app/src/main/cpp/include/listobject.h +55 -0
  322. pytron/platforms/android/shell/app/src/main/cpp/include/lock.h +16 -0
  323. pytron/platforms/android/shell/app/src/main/cpp/include/longobject.h +178 -0
  324. pytron/platforms/android/shell/app/src/main/cpp/include/marshal.h +31 -0
  325. pytron/platforms/android/shell/app/src/main/cpp/include/memoryobject.h +34 -0
  326. pytron/platforms/android/shell/app/src/main/cpp/include/methodobject.h +146 -0
  327. pytron/platforms/android/shell/app/src/main/cpp/include/modsupport.h +146 -0
  328. pytron/platforms/android/shell/app/src/main/cpp/include/moduleobject.h +122 -0
  329. pytron/platforms/android/shell/app/src/main/cpp/include/monitoring.h +18 -0
  330. pytron/platforms/android/shell/app/src/main/cpp/include/object.h +828 -0
  331. pytron/platforms/android/shell/app/src/main/cpp/include/objimpl.h +211 -0
  332. pytron/platforms/android/shell/app/src/main/cpp/include/opcode.h +43 -0
  333. pytron/platforms/android/shell/app/src/main/cpp/include/opcode_ids.h +259 -0
  334. pytron/platforms/android/shell/app/src/main/cpp/include/osdefs.h +57 -0
  335. pytron/platforms/android/shell/app/src/main/cpp/include/osmodule.h +17 -0
  336. pytron/platforms/android/shell/app/src/main/cpp/include/patchlevel.h +49 -0
  337. pytron/platforms/android/shell/app/src/main/cpp/include/py_curses.h +117 -0
  338. pytron/platforms/android/shell/app/src/main/cpp/include/pyatomic.h +16 -0
  339. pytron/platforms/android/shell/app/src/main/cpp/include/pybuffer.h +145 -0
  340. pytron/platforms/android/shell/app/src/main/cpp/include/pycapsule.h +58 -0
  341. pytron/platforms/android/shell/app/src/main/cpp/include/pyconfig.h +2088 -0
  342. pytron/platforms/android/shell/app/src/main/cpp/include/pydtrace.h +59 -0
  343. pytron/platforms/android/shell/app/src/main/cpp/include/pyerrors.h +335 -0
  344. pytron/platforms/android/shell/app/src/main/cpp/include/pyexpat.h +62 -0
  345. pytron/platforms/android/shell/app/src/main/cpp/include/pyframe.h +26 -0
  346. pytron/platforms/android/shell/app/src/main/cpp/include/pyhash.h +59 -0
  347. pytron/platforms/android/shell/app/src/main/cpp/include/pylifecycle.h +80 -0
  348. pytron/platforms/android/shell/app/src/main/cpp/include/pymacconfig.h +91 -0
  349. pytron/platforms/android/shell/app/src/main/cpp/include/pymacro.h +243 -0
  350. pytron/platforms/android/shell/app/src/main/cpp/include/pymath.h +65 -0
  351. pytron/platforms/android/shell/app/src/main/cpp/include/pymem.h +110 -0
  352. pytron/platforms/android/shell/app/src/main/cpp/include/pyport.h +710 -0
  353. pytron/platforms/android/shell/app/src/main/cpp/include/pystate.h +132 -0
  354. pytron/platforms/android/shell/app/src/main/cpp/include/pystats.h +28 -0
  355. pytron/platforms/android/shell/app/src/main/cpp/include/pystrcmp.h +23 -0
  356. pytron/platforms/android/shell/app/src/main/cpp/include/pystrtod.h +37 -0
  357. pytron/platforms/android/shell/app/src/main/cpp/include/pythonrun.h +42 -0
  358. pytron/platforms/android/shell/app/src/main/cpp/include/pythread.h +131 -0
  359. pytron/platforms/android/shell/app/src/main/cpp/include/pytypedefs.h +30 -0
  360. pytron/platforms/android/shell/app/src/main/cpp/include/rangeobject.h +27 -0
  361. pytron/platforms/android/shell/app/src/main/cpp/include/refcount.h +555 -0
  362. pytron/platforms/android/shell/app/src/main/cpp/include/setobject.h +49 -0
  363. pytron/platforms/android/shell/app/src/main/cpp/include/sliceobject.h +69 -0
  364. pytron/platforms/android/shell/app/src/main/cpp/include/structmember.h +56 -0
  365. pytron/platforms/android/shell/app/src/main/cpp/include/structseq.h +46 -0
  366. pytron/platforms/android/shell/app/src/main/cpp/include/sysmodule.h +27 -0
  367. pytron/platforms/android/shell/app/src/main/cpp/include/traceback.h +26 -0
  368. pytron/platforms/android/shell/app/src/main/cpp/include/tupleobject.h +46 -0
  369. pytron/platforms/android/shell/app/src/main/cpp/include/typeslots.h +96 -0
  370. pytron/platforms/android/shell/app/src/main/cpp/include/unicodeobject.h +1029 -0
  371. pytron/platforms/android/shell/app/src/main/cpp/include/warnings.h +45 -0
  372. pytron/platforms/android/shell/app/src/main/cpp/include/weakrefobject.h +46 -0
  373. pytron/platforms/android/shell/app/src/main/cpp/pytron_bridge.cpp +224 -0
  374. pytron/platforms/android/shell/app/src/main/java/com/pytron/shell/MainActivity.kt +208 -0
  375. pytron/platforms/android/shell/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  376. pytron/platforms/android/shell/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  377. pytron/platforms/android/shell/build.gradle +11 -0
  378. pytron/platforms/android/shell/gradle/wrapper/gradle-wrapper.jar +0 -0
  379. pytron/platforms/android/shell/gradle/wrapper/gradle-wrapper.properties +5 -0
  380. pytron/platforms/android/shell/gradle.properties +2 -0
  381. pytron/platforms/android/shell/gradlew.bat +85 -0
  382. pytron/platforms/android/shell/settings.gradle +16 -0
  383. pytron/platforms/darwin.py +82 -0
  384. pytron/platforms/darwin_ops/libs.py +31 -0
  385. pytron/platforms/darwin_ops/system.py +182 -0
  386. pytron/platforms/darwin_ops/utils.py +85 -0
  387. pytron/platforms/darwin_ops/webview.py +5 -0
  388. pytron/platforms/darwin_ops/window.py +102 -0
  389. pytron/platforms/interface.py +152 -0
  390. pytron/platforms/linux.py +82 -0
  391. pytron/platforms/linux_ops/libs.py +49 -0
  392. pytron/platforms/linux_ops/system.py +316 -0
  393. pytron/platforms/linux_ops/utils.py +19 -0
  394. pytron/platforms/linux_ops/webview.py +5 -0
  395. pytron/platforms/linux_ops/window.py +115 -0
  396. pytron/platforms/windows.py +136 -0
  397. pytron/platforms/windows_ops/__init__.py +0 -0
  398. pytron/platforms/windows_ops/constants.py +126 -0
  399. pytron/platforms/windows_ops/system.py +518 -0
  400. pytron/platforms/windows_ops/utils.py +3 -0
  401. pytron/platforms/windows_ops/webview.py +5 -0
  402. pytron/platforms/windows_ops/window.py +361 -0
  403. pytron/plugin.py +467 -0
  404. pytron/rcedit-x64.exe +0 -0
  405. pytron/router.py +146 -0
  406. pytron/serializer.py +240 -0
  407. pytron/shortcuts.py +279 -0
  408. pytron/state.py +76 -0
  409. pytron/tray.py +399 -0
  410. pytron/updater.py +181 -0
  411. pytron/utf8_hook.py +112 -0
  412. pytron/utils.py +44 -0
  413. pytron/webview.py +722 -0
  414. pytron_kit-0.3.12.dist-info/METADATA +131 -0
  415. pytron_kit-0.3.12.dist-info/RECORD +419 -0
  416. pytron_kit-0.3.12.dist-info/WHEEL +5 -0
  417. pytron_kit-0.3.12.dist-info/entry_points.txt +2 -0
  418. pytron_kit-0.3.12.dist-info/licenses/LICENSE +201 -0
  419. pytron_kit-0.3.12.dist-info/top_level.txt +1 -0
@@ -0,0 +1,945 @@
1
+ // File automatically generated by Parser/asdl_c.py.
2
+
3
+ #ifndef Py_INTERNAL_AST_H
4
+ #define Py_INTERNAL_AST_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ #ifndef Py_BUILD_CORE
10
+ # error "this header requires Py_BUILD_CORE define"
11
+ #endif
12
+
13
+ #include "pycore_asdl.h" // _ASDL_SEQ_HEAD
14
+
15
+ typedef struct _mod *mod_ty;
16
+
17
+ typedef struct _stmt *stmt_ty;
18
+
19
+ typedef struct _expr *expr_ty;
20
+
21
+ typedef enum _expr_context { Load=1, Store=2, Del=3 } expr_context_ty;
22
+
23
+ typedef enum _boolop { And=1, Or=2 } boolop_ty;
24
+
25
+ typedef enum _operator { Add=1, Sub=2, Mult=3, MatMult=4, Div=5, Mod=6, Pow=7,
26
+ LShift=8, RShift=9, BitOr=10, BitXor=11, BitAnd=12,
27
+ FloorDiv=13 } operator_ty;
28
+
29
+ typedef enum _unaryop { Invert=1, Not=2, UAdd=3, USub=4 } unaryop_ty;
30
+
31
+ typedef enum _cmpop { Eq=1, NotEq=2, Lt=3, LtE=4, Gt=5, GtE=6, Is=7, IsNot=8,
32
+ In=9, NotIn=10 } cmpop_ty;
33
+
34
+ typedef struct _comprehension *comprehension_ty;
35
+
36
+ typedef struct _excepthandler *excepthandler_ty;
37
+
38
+ typedef struct _arguments *arguments_ty;
39
+
40
+ typedef struct _arg *arg_ty;
41
+
42
+ typedef struct _keyword *keyword_ty;
43
+
44
+ typedef struct _alias *alias_ty;
45
+
46
+ typedef struct _withitem *withitem_ty;
47
+
48
+ typedef struct _match_case *match_case_ty;
49
+
50
+ typedef struct _pattern *pattern_ty;
51
+
52
+ typedef struct _type_ignore *type_ignore_ty;
53
+
54
+ typedef struct _type_param *type_param_ty;
55
+
56
+
57
+ typedef struct {
58
+ _ASDL_SEQ_HEAD
59
+ mod_ty typed_elements[1];
60
+ } asdl_mod_seq;
61
+
62
+ asdl_mod_seq *_Py_asdl_mod_seq_new(Py_ssize_t size, PyArena *arena);
63
+
64
+ typedef struct {
65
+ _ASDL_SEQ_HEAD
66
+ stmt_ty typed_elements[1];
67
+ } asdl_stmt_seq;
68
+
69
+ asdl_stmt_seq *_Py_asdl_stmt_seq_new(Py_ssize_t size, PyArena *arena);
70
+
71
+ typedef struct {
72
+ _ASDL_SEQ_HEAD
73
+ expr_ty typed_elements[1];
74
+ } asdl_expr_seq;
75
+
76
+ asdl_expr_seq *_Py_asdl_expr_seq_new(Py_ssize_t size, PyArena *arena);
77
+
78
+ typedef struct {
79
+ _ASDL_SEQ_HEAD
80
+ comprehension_ty typed_elements[1];
81
+ } asdl_comprehension_seq;
82
+
83
+ asdl_comprehension_seq *_Py_asdl_comprehension_seq_new(Py_ssize_t size, PyArena
84
+ *arena);
85
+
86
+ typedef struct {
87
+ _ASDL_SEQ_HEAD
88
+ excepthandler_ty typed_elements[1];
89
+ } asdl_excepthandler_seq;
90
+
91
+ asdl_excepthandler_seq *_Py_asdl_excepthandler_seq_new(Py_ssize_t size, PyArena
92
+ *arena);
93
+
94
+ typedef struct {
95
+ _ASDL_SEQ_HEAD
96
+ arguments_ty typed_elements[1];
97
+ } asdl_arguments_seq;
98
+
99
+ asdl_arguments_seq *_Py_asdl_arguments_seq_new(Py_ssize_t size, PyArena *arena);
100
+
101
+ typedef struct {
102
+ _ASDL_SEQ_HEAD
103
+ arg_ty typed_elements[1];
104
+ } asdl_arg_seq;
105
+
106
+ asdl_arg_seq *_Py_asdl_arg_seq_new(Py_ssize_t size, PyArena *arena);
107
+
108
+ typedef struct {
109
+ _ASDL_SEQ_HEAD
110
+ keyword_ty typed_elements[1];
111
+ } asdl_keyword_seq;
112
+
113
+ asdl_keyword_seq *_Py_asdl_keyword_seq_new(Py_ssize_t size, PyArena *arena);
114
+
115
+ typedef struct {
116
+ _ASDL_SEQ_HEAD
117
+ alias_ty typed_elements[1];
118
+ } asdl_alias_seq;
119
+
120
+ asdl_alias_seq *_Py_asdl_alias_seq_new(Py_ssize_t size, PyArena *arena);
121
+
122
+ typedef struct {
123
+ _ASDL_SEQ_HEAD
124
+ withitem_ty typed_elements[1];
125
+ } asdl_withitem_seq;
126
+
127
+ asdl_withitem_seq *_Py_asdl_withitem_seq_new(Py_ssize_t size, PyArena *arena);
128
+
129
+ typedef struct {
130
+ _ASDL_SEQ_HEAD
131
+ match_case_ty typed_elements[1];
132
+ } asdl_match_case_seq;
133
+
134
+ asdl_match_case_seq *_Py_asdl_match_case_seq_new(Py_ssize_t size, PyArena
135
+ *arena);
136
+
137
+ typedef struct {
138
+ _ASDL_SEQ_HEAD
139
+ pattern_ty typed_elements[1];
140
+ } asdl_pattern_seq;
141
+
142
+ asdl_pattern_seq *_Py_asdl_pattern_seq_new(Py_ssize_t size, PyArena *arena);
143
+
144
+ typedef struct {
145
+ _ASDL_SEQ_HEAD
146
+ type_ignore_ty typed_elements[1];
147
+ } asdl_type_ignore_seq;
148
+
149
+ asdl_type_ignore_seq *_Py_asdl_type_ignore_seq_new(Py_ssize_t size, PyArena
150
+ *arena);
151
+
152
+ typedef struct {
153
+ _ASDL_SEQ_HEAD
154
+ type_param_ty typed_elements[1];
155
+ } asdl_type_param_seq;
156
+
157
+ asdl_type_param_seq *_Py_asdl_type_param_seq_new(Py_ssize_t size, PyArena
158
+ *arena);
159
+
160
+
161
+ enum _mod_kind {Module_kind=1, Interactive_kind=2, Expression_kind=3,
162
+ FunctionType_kind=4};
163
+ struct _mod {
164
+ enum _mod_kind kind;
165
+ union {
166
+ struct {
167
+ asdl_stmt_seq *body;
168
+ asdl_type_ignore_seq *type_ignores;
169
+ } Module;
170
+
171
+ struct {
172
+ asdl_stmt_seq *body;
173
+ } Interactive;
174
+
175
+ struct {
176
+ expr_ty body;
177
+ } Expression;
178
+
179
+ struct {
180
+ asdl_expr_seq *argtypes;
181
+ expr_ty returns;
182
+ } FunctionType;
183
+
184
+ } v;
185
+ };
186
+
187
+ enum _stmt_kind {FunctionDef_kind=1, AsyncFunctionDef_kind=2, ClassDef_kind=3,
188
+ Return_kind=4, Delete_kind=5, Assign_kind=6,
189
+ TypeAlias_kind=7, AugAssign_kind=8, AnnAssign_kind=9,
190
+ For_kind=10, AsyncFor_kind=11, While_kind=12, If_kind=13,
191
+ With_kind=14, AsyncWith_kind=15, Match_kind=16,
192
+ Raise_kind=17, Try_kind=18, TryStar_kind=19, Assert_kind=20,
193
+ Import_kind=21, ImportFrom_kind=22, Global_kind=23,
194
+ Nonlocal_kind=24, Expr_kind=25, Pass_kind=26, Break_kind=27,
195
+ Continue_kind=28};
196
+ struct _stmt {
197
+ enum _stmt_kind kind;
198
+ union {
199
+ struct {
200
+ identifier name;
201
+ arguments_ty args;
202
+ asdl_stmt_seq *body;
203
+ asdl_expr_seq *decorator_list;
204
+ expr_ty returns;
205
+ string type_comment;
206
+ asdl_type_param_seq *type_params;
207
+ } FunctionDef;
208
+
209
+ struct {
210
+ identifier name;
211
+ arguments_ty args;
212
+ asdl_stmt_seq *body;
213
+ asdl_expr_seq *decorator_list;
214
+ expr_ty returns;
215
+ string type_comment;
216
+ asdl_type_param_seq *type_params;
217
+ } AsyncFunctionDef;
218
+
219
+ struct {
220
+ identifier name;
221
+ asdl_expr_seq *bases;
222
+ asdl_keyword_seq *keywords;
223
+ asdl_stmt_seq *body;
224
+ asdl_expr_seq *decorator_list;
225
+ asdl_type_param_seq *type_params;
226
+ } ClassDef;
227
+
228
+ struct {
229
+ expr_ty value;
230
+ } Return;
231
+
232
+ struct {
233
+ asdl_expr_seq *targets;
234
+ } Delete;
235
+
236
+ struct {
237
+ asdl_expr_seq *targets;
238
+ expr_ty value;
239
+ string type_comment;
240
+ } Assign;
241
+
242
+ struct {
243
+ expr_ty name;
244
+ asdl_type_param_seq *type_params;
245
+ expr_ty value;
246
+ } TypeAlias;
247
+
248
+ struct {
249
+ expr_ty target;
250
+ operator_ty op;
251
+ expr_ty value;
252
+ } AugAssign;
253
+
254
+ struct {
255
+ expr_ty target;
256
+ expr_ty annotation;
257
+ expr_ty value;
258
+ int simple;
259
+ } AnnAssign;
260
+
261
+ struct {
262
+ expr_ty target;
263
+ expr_ty iter;
264
+ asdl_stmt_seq *body;
265
+ asdl_stmt_seq *orelse;
266
+ string type_comment;
267
+ } For;
268
+
269
+ struct {
270
+ expr_ty target;
271
+ expr_ty iter;
272
+ asdl_stmt_seq *body;
273
+ asdl_stmt_seq *orelse;
274
+ string type_comment;
275
+ } AsyncFor;
276
+
277
+ struct {
278
+ expr_ty test;
279
+ asdl_stmt_seq *body;
280
+ asdl_stmt_seq *orelse;
281
+ } While;
282
+
283
+ struct {
284
+ expr_ty test;
285
+ asdl_stmt_seq *body;
286
+ asdl_stmt_seq *orelse;
287
+ } If;
288
+
289
+ struct {
290
+ asdl_withitem_seq *items;
291
+ asdl_stmt_seq *body;
292
+ string type_comment;
293
+ } With;
294
+
295
+ struct {
296
+ asdl_withitem_seq *items;
297
+ asdl_stmt_seq *body;
298
+ string type_comment;
299
+ } AsyncWith;
300
+
301
+ struct {
302
+ expr_ty subject;
303
+ asdl_match_case_seq *cases;
304
+ } Match;
305
+
306
+ struct {
307
+ expr_ty exc;
308
+ expr_ty cause;
309
+ } Raise;
310
+
311
+ struct {
312
+ asdl_stmt_seq *body;
313
+ asdl_excepthandler_seq *handlers;
314
+ asdl_stmt_seq *orelse;
315
+ asdl_stmt_seq *finalbody;
316
+ } Try;
317
+
318
+ struct {
319
+ asdl_stmt_seq *body;
320
+ asdl_excepthandler_seq *handlers;
321
+ asdl_stmt_seq *orelse;
322
+ asdl_stmt_seq *finalbody;
323
+ } TryStar;
324
+
325
+ struct {
326
+ expr_ty test;
327
+ expr_ty msg;
328
+ } Assert;
329
+
330
+ struct {
331
+ asdl_alias_seq *names;
332
+ } Import;
333
+
334
+ struct {
335
+ identifier module;
336
+ asdl_alias_seq *names;
337
+ int level;
338
+ } ImportFrom;
339
+
340
+ struct {
341
+ asdl_identifier_seq *names;
342
+ } Global;
343
+
344
+ struct {
345
+ asdl_identifier_seq *names;
346
+ } Nonlocal;
347
+
348
+ struct {
349
+ expr_ty value;
350
+ } Expr;
351
+
352
+ } v;
353
+ int lineno;
354
+ int col_offset;
355
+ int end_lineno;
356
+ int end_col_offset;
357
+ };
358
+
359
+ enum _expr_kind {BoolOp_kind=1, NamedExpr_kind=2, BinOp_kind=3, UnaryOp_kind=4,
360
+ Lambda_kind=5, IfExp_kind=6, Dict_kind=7, Set_kind=8,
361
+ ListComp_kind=9, SetComp_kind=10, DictComp_kind=11,
362
+ GeneratorExp_kind=12, Await_kind=13, Yield_kind=14,
363
+ YieldFrom_kind=15, Compare_kind=16, Call_kind=17,
364
+ FormattedValue_kind=18, Interpolation_kind=19,
365
+ JoinedStr_kind=20, TemplateStr_kind=21, Constant_kind=22,
366
+ Attribute_kind=23, Subscript_kind=24, Starred_kind=25,
367
+ Name_kind=26, List_kind=27, Tuple_kind=28, Slice_kind=29};
368
+ struct _expr {
369
+ enum _expr_kind kind;
370
+ union {
371
+ struct {
372
+ boolop_ty op;
373
+ asdl_expr_seq *values;
374
+ } BoolOp;
375
+
376
+ struct {
377
+ expr_ty target;
378
+ expr_ty value;
379
+ } NamedExpr;
380
+
381
+ struct {
382
+ expr_ty left;
383
+ operator_ty op;
384
+ expr_ty right;
385
+ } BinOp;
386
+
387
+ struct {
388
+ unaryop_ty op;
389
+ expr_ty operand;
390
+ } UnaryOp;
391
+
392
+ struct {
393
+ arguments_ty args;
394
+ expr_ty body;
395
+ } Lambda;
396
+
397
+ struct {
398
+ expr_ty test;
399
+ expr_ty body;
400
+ expr_ty orelse;
401
+ } IfExp;
402
+
403
+ struct {
404
+ asdl_expr_seq *keys;
405
+ asdl_expr_seq *values;
406
+ } Dict;
407
+
408
+ struct {
409
+ asdl_expr_seq *elts;
410
+ } Set;
411
+
412
+ struct {
413
+ expr_ty elt;
414
+ asdl_comprehension_seq *generators;
415
+ } ListComp;
416
+
417
+ struct {
418
+ expr_ty elt;
419
+ asdl_comprehension_seq *generators;
420
+ } SetComp;
421
+
422
+ struct {
423
+ expr_ty key;
424
+ expr_ty value;
425
+ asdl_comprehension_seq *generators;
426
+ } DictComp;
427
+
428
+ struct {
429
+ expr_ty elt;
430
+ asdl_comprehension_seq *generators;
431
+ } GeneratorExp;
432
+
433
+ struct {
434
+ expr_ty value;
435
+ } Await;
436
+
437
+ struct {
438
+ expr_ty value;
439
+ } Yield;
440
+
441
+ struct {
442
+ expr_ty value;
443
+ } YieldFrom;
444
+
445
+ struct {
446
+ expr_ty left;
447
+ asdl_int_seq *ops;
448
+ asdl_expr_seq *comparators;
449
+ } Compare;
450
+
451
+ struct {
452
+ expr_ty func;
453
+ asdl_expr_seq *args;
454
+ asdl_keyword_seq *keywords;
455
+ } Call;
456
+
457
+ struct {
458
+ expr_ty value;
459
+ int conversion;
460
+ expr_ty format_spec;
461
+ } FormattedValue;
462
+
463
+ struct {
464
+ expr_ty value;
465
+ constant str;
466
+ int conversion;
467
+ expr_ty format_spec;
468
+ } Interpolation;
469
+
470
+ struct {
471
+ asdl_expr_seq *values;
472
+ } JoinedStr;
473
+
474
+ struct {
475
+ asdl_expr_seq *values;
476
+ } TemplateStr;
477
+
478
+ struct {
479
+ constant value;
480
+ string kind;
481
+ } Constant;
482
+
483
+ struct {
484
+ expr_ty value;
485
+ identifier attr;
486
+ expr_context_ty ctx;
487
+ } Attribute;
488
+
489
+ struct {
490
+ expr_ty value;
491
+ expr_ty slice;
492
+ expr_context_ty ctx;
493
+ } Subscript;
494
+
495
+ struct {
496
+ expr_ty value;
497
+ expr_context_ty ctx;
498
+ } Starred;
499
+
500
+ struct {
501
+ identifier id;
502
+ expr_context_ty ctx;
503
+ } Name;
504
+
505
+ struct {
506
+ asdl_expr_seq *elts;
507
+ expr_context_ty ctx;
508
+ } List;
509
+
510
+ struct {
511
+ asdl_expr_seq *elts;
512
+ expr_context_ty ctx;
513
+ } Tuple;
514
+
515
+ struct {
516
+ expr_ty lower;
517
+ expr_ty upper;
518
+ expr_ty step;
519
+ } Slice;
520
+
521
+ } v;
522
+ int lineno;
523
+ int col_offset;
524
+ int end_lineno;
525
+ int end_col_offset;
526
+ };
527
+
528
+ struct _comprehension {
529
+ expr_ty target;
530
+ expr_ty iter;
531
+ asdl_expr_seq *ifs;
532
+ int is_async;
533
+ };
534
+
535
+ enum _excepthandler_kind {ExceptHandler_kind=1};
536
+ struct _excepthandler {
537
+ enum _excepthandler_kind kind;
538
+ union {
539
+ struct {
540
+ expr_ty type;
541
+ identifier name;
542
+ asdl_stmt_seq *body;
543
+ } ExceptHandler;
544
+
545
+ } v;
546
+ int lineno;
547
+ int col_offset;
548
+ int end_lineno;
549
+ int end_col_offset;
550
+ };
551
+
552
+ struct _arguments {
553
+ asdl_arg_seq *posonlyargs;
554
+ asdl_arg_seq *args;
555
+ arg_ty vararg;
556
+ asdl_arg_seq *kwonlyargs;
557
+ asdl_expr_seq *kw_defaults;
558
+ arg_ty kwarg;
559
+ asdl_expr_seq *defaults;
560
+ };
561
+
562
+ struct _arg {
563
+ identifier arg;
564
+ expr_ty annotation;
565
+ string type_comment;
566
+ int lineno;
567
+ int col_offset;
568
+ int end_lineno;
569
+ int end_col_offset;
570
+ };
571
+
572
+ struct _keyword {
573
+ identifier arg;
574
+ expr_ty value;
575
+ int lineno;
576
+ int col_offset;
577
+ int end_lineno;
578
+ int end_col_offset;
579
+ };
580
+
581
+ struct _alias {
582
+ identifier name;
583
+ identifier asname;
584
+ int lineno;
585
+ int col_offset;
586
+ int end_lineno;
587
+ int end_col_offset;
588
+ };
589
+
590
+ struct _withitem {
591
+ expr_ty context_expr;
592
+ expr_ty optional_vars;
593
+ };
594
+
595
+ struct _match_case {
596
+ pattern_ty pattern;
597
+ expr_ty guard;
598
+ asdl_stmt_seq *body;
599
+ };
600
+
601
+ enum _pattern_kind {MatchValue_kind=1, MatchSingleton_kind=2,
602
+ MatchSequence_kind=3, MatchMapping_kind=4,
603
+ MatchClass_kind=5, MatchStar_kind=6, MatchAs_kind=7,
604
+ MatchOr_kind=8};
605
+ struct _pattern {
606
+ enum _pattern_kind kind;
607
+ union {
608
+ struct {
609
+ expr_ty value;
610
+ } MatchValue;
611
+
612
+ struct {
613
+ constant value;
614
+ } MatchSingleton;
615
+
616
+ struct {
617
+ asdl_pattern_seq *patterns;
618
+ } MatchSequence;
619
+
620
+ struct {
621
+ asdl_expr_seq *keys;
622
+ asdl_pattern_seq *patterns;
623
+ identifier rest;
624
+ } MatchMapping;
625
+
626
+ struct {
627
+ expr_ty cls;
628
+ asdl_pattern_seq *patterns;
629
+ asdl_identifier_seq *kwd_attrs;
630
+ asdl_pattern_seq *kwd_patterns;
631
+ } MatchClass;
632
+
633
+ struct {
634
+ identifier name;
635
+ } MatchStar;
636
+
637
+ struct {
638
+ pattern_ty pattern;
639
+ identifier name;
640
+ } MatchAs;
641
+
642
+ struct {
643
+ asdl_pattern_seq *patterns;
644
+ } MatchOr;
645
+
646
+ } v;
647
+ int lineno;
648
+ int col_offset;
649
+ int end_lineno;
650
+ int end_col_offset;
651
+ };
652
+
653
+ enum _type_ignore_kind {TypeIgnore_kind=1};
654
+ struct _type_ignore {
655
+ enum _type_ignore_kind kind;
656
+ union {
657
+ struct {
658
+ int lineno;
659
+ string tag;
660
+ } TypeIgnore;
661
+
662
+ } v;
663
+ };
664
+
665
+ enum _type_param_kind {TypeVar_kind=1, ParamSpec_kind=2, TypeVarTuple_kind=3};
666
+ struct _type_param {
667
+ enum _type_param_kind kind;
668
+ union {
669
+ struct {
670
+ identifier name;
671
+ expr_ty bound;
672
+ expr_ty default_value;
673
+ } TypeVar;
674
+
675
+ struct {
676
+ identifier name;
677
+ expr_ty default_value;
678
+ } ParamSpec;
679
+
680
+ struct {
681
+ identifier name;
682
+ expr_ty default_value;
683
+ } TypeVarTuple;
684
+
685
+ } v;
686
+ int lineno;
687
+ int col_offset;
688
+ int end_lineno;
689
+ int end_col_offset;
690
+ };
691
+
692
+
693
+ // Note: these macros affect function definitions, not only call sites.
694
+ mod_ty _PyAST_Module(asdl_stmt_seq * body, asdl_type_ignore_seq * type_ignores,
695
+ PyArena *arena);
696
+ mod_ty _PyAST_Interactive(asdl_stmt_seq * body, PyArena *arena);
697
+ mod_ty _PyAST_Expression(expr_ty body, PyArena *arena);
698
+ mod_ty _PyAST_FunctionType(asdl_expr_seq * argtypes, expr_ty returns, PyArena
699
+ *arena);
700
+ stmt_ty _PyAST_FunctionDef(identifier name, arguments_ty args, asdl_stmt_seq *
701
+ body, asdl_expr_seq * decorator_list, expr_ty
702
+ returns, string type_comment, asdl_type_param_seq *
703
+ type_params, int lineno, int col_offset, int
704
+ end_lineno, int end_col_offset, PyArena *arena);
705
+ stmt_ty _PyAST_AsyncFunctionDef(identifier name, arguments_ty args,
706
+ asdl_stmt_seq * body, asdl_expr_seq *
707
+ decorator_list, expr_ty returns, string
708
+ type_comment, asdl_type_param_seq *
709
+ type_params, int lineno, int col_offset, int
710
+ end_lineno, int end_col_offset, PyArena *arena);
711
+ stmt_ty _PyAST_ClassDef(identifier name, asdl_expr_seq * bases,
712
+ asdl_keyword_seq * keywords, asdl_stmt_seq * body,
713
+ asdl_expr_seq * decorator_list, asdl_type_param_seq *
714
+ type_params, int lineno, int col_offset, int
715
+ end_lineno, int end_col_offset, PyArena *arena);
716
+ stmt_ty _PyAST_Return(expr_ty value, int lineno, int col_offset, int
717
+ end_lineno, int end_col_offset, PyArena *arena);
718
+ stmt_ty _PyAST_Delete(asdl_expr_seq * targets, int lineno, int col_offset, int
719
+ end_lineno, int end_col_offset, PyArena *arena);
720
+ stmt_ty _PyAST_Assign(asdl_expr_seq * targets, expr_ty value, string
721
+ type_comment, int lineno, int col_offset, int end_lineno,
722
+ int end_col_offset, PyArena *arena);
723
+ stmt_ty _PyAST_TypeAlias(expr_ty name, asdl_type_param_seq * type_params,
724
+ expr_ty value, int lineno, int col_offset, int
725
+ end_lineno, int end_col_offset, PyArena *arena);
726
+ stmt_ty _PyAST_AugAssign(expr_ty target, operator_ty op, expr_ty value, int
727
+ lineno, int col_offset, int end_lineno, int
728
+ end_col_offset, PyArena *arena);
729
+ stmt_ty _PyAST_AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int
730
+ simple, int lineno, int col_offset, int end_lineno,
731
+ int end_col_offset, PyArena *arena);
732
+ stmt_ty _PyAST_For(expr_ty target, expr_ty iter, asdl_stmt_seq * body,
733
+ asdl_stmt_seq * orelse, string type_comment, int lineno, int
734
+ col_offset, int end_lineno, int end_col_offset, PyArena
735
+ *arena);
736
+ stmt_ty _PyAST_AsyncFor(expr_ty target, expr_ty iter, asdl_stmt_seq * body,
737
+ asdl_stmt_seq * orelse, string type_comment, int
738
+ lineno, int col_offset, int end_lineno, int
739
+ end_col_offset, PyArena *arena);
740
+ stmt_ty _PyAST_While(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq *
741
+ orelse, int lineno, int col_offset, int end_lineno, int
742
+ end_col_offset, PyArena *arena);
743
+ stmt_ty _PyAST_If(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse,
744
+ int lineno, int col_offset, int end_lineno, int
745
+ end_col_offset, PyArena *arena);
746
+ stmt_ty _PyAST_With(asdl_withitem_seq * items, asdl_stmt_seq * body, string
747
+ type_comment, int lineno, int col_offset, int end_lineno,
748
+ int end_col_offset, PyArena *arena);
749
+ stmt_ty _PyAST_AsyncWith(asdl_withitem_seq * items, asdl_stmt_seq * body,
750
+ string type_comment, int lineno, int col_offset, int
751
+ end_lineno, int end_col_offset, PyArena *arena);
752
+ stmt_ty _PyAST_Match(expr_ty subject, asdl_match_case_seq * cases, int lineno,
753
+ int col_offset, int end_lineno, int end_col_offset,
754
+ PyArena *arena);
755
+ stmt_ty _PyAST_Raise(expr_ty exc, expr_ty cause, int lineno, int col_offset,
756
+ int end_lineno, int end_col_offset, PyArena *arena);
757
+ stmt_ty _PyAST_Try(asdl_stmt_seq * body, asdl_excepthandler_seq * handlers,
758
+ asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int
759
+ lineno, int col_offset, int end_lineno, int end_col_offset,
760
+ PyArena *arena);
761
+ stmt_ty _PyAST_TryStar(asdl_stmt_seq * body, asdl_excepthandler_seq * handlers,
762
+ asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int
763
+ lineno, int col_offset, int end_lineno, int
764
+ end_col_offset, PyArena *arena);
765
+ stmt_ty _PyAST_Assert(expr_ty test, expr_ty msg, int lineno, int col_offset,
766
+ int end_lineno, int end_col_offset, PyArena *arena);
767
+ stmt_ty _PyAST_Import(asdl_alias_seq * names, int lineno, int col_offset, int
768
+ end_lineno, int end_col_offset, PyArena *arena);
769
+ stmt_ty _PyAST_ImportFrom(identifier module, asdl_alias_seq * names, int level,
770
+ int lineno, int col_offset, int end_lineno, int
771
+ end_col_offset, PyArena *arena);
772
+ stmt_ty _PyAST_Global(asdl_identifier_seq * names, int lineno, int col_offset,
773
+ int end_lineno, int end_col_offset, PyArena *arena);
774
+ stmt_ty _PyAST_Nonlocal(asdl_identifier_seq * names, int lineno, int
775
+ col_offset, int end_lineno, int end_col_offset, PyArena
776
+ *arena);
777
+ stmt_ty _PyAST_Expr(expr_ty value, int lineno, int col_offset, int end_lineno,
778
+ int end_col_offset, PyArena *arena);
779
+ stmt_ty _PyAST_Pass(int lineno, int col_offset, int end_lineno, int
780
+ end_col_offset, PyArena *arena);
781
+ stmt_ty _PyAST_Break(int lineno, int col_offset, int end_lineno, int
782
+ end_col_offset, PyArena *arena);
783
+ stmt_ty _PyAST_Continue(int lineno, int col_offset, int end_lineno, int
784
+ end_col_offset, PyArena *arena);
785
+ expr_ty _PyAST_BoolOp(boolop_ty op, asdl_expr_seq * values, int lineno, int
786
+ col_offset, int end_lineno, int end_col_offset, PyArena
787
+ *arena);
788
+ expr_ty _PyAST_NamedExpr(expr_ty target, expr_ty value, int lineno, int
789
+ col_offset, int end_lineno, int end_col_offset,
790
+ PyArena *arena);
791
+ expr_ty _PyAST_BinOp(expr_ty left, operator_ty op, expr_ty right, int lineno,
792
+ int col_offset, int end_lineno, int end_col_offset,
793
+ PyArena *arena);
794
+ expr_ty _PyAST_UnaryOp(unaryop_ty op, expr_ty operand, int lineno, int
795
+ col_offset, int end_lineno, int end_col_offset, PyArena
796
+ *arena);
797
+ expr_ty _PyAST_Lambda(arguments_ty args, expr_ty body, int lineno, int
798
+ col_offset, int end_lineno, int end_col_offset, PyArena
799
+ *arena);
800
+ expr_ty _PyAST_IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno,
801
+ int col_offset, int end_lineno, int end_col_offset,
802
+ PyArena *arena);
803
+ expr_ty _PyAST_Dict(asdl_expr_seq * keys, asdl_expr_seq * values, int lineno,
804
+ int col_offset, int end_lineno, int end_col_offset, PyArena
805
+ *arena);
806
+ expr_ty _PyAST_Set(asdl_expr_seq * elts, int lineno, int col_offset, int
807
+ end_lineno, int end_col_offset, PyArena *arena);
808
+ expr_ty _PyAST_ListComp(expr_ty elt, asdl_comprehension_seq * generators, int
809
+ lineno, int col_offset, int end_lineno, int
810
+ end_col_offset, PyArena *arena);
811
+ expr_ty _PyAST_SetComp(expr_ty elt, asdl_comprehension_seq * generators, int
812
+ lineno, int col_offset, int end_lineno, int
813
+ end_col_offset, PyArena *arena);
814
+ expr_ty _PyAST_DictComp(expr_ty key, expr_ty value, asdl_comprehension_seq *
815
+ generators, int lineno, int col_offset, int end_lineno,
816
+ int end_col_offset, PyArena *arena);
817
+ expr_ty _PyAST_GeneratorExp(expr_ty elt, asdl_comprehension_seq * generators,
818
+ int lineno, int col_offset, int end_lineno, int
819
+ end_col_offset, PyArena *arena);
820
+ expr_ty _PyAST_Await(expr_ty value, int lineno, int col_offset, int end_lineno,
821
+ int end_col_offset, PyArena *arena);
822
+ expr_ty _PyAST_Yield(expr_ty value, int lineno, int col_offset, int end_lineno,
823
+ int end_col_offset, PyArena *arena);
824
+ expr_ty _PyAST_YieldFrom(expr_ty value, int lineno, int col_offset, int
825
+ end_lineno, int end_col_offset, PyArena *arena);
826
+ expr_ty _PyAST_Compare(expr_ty left, asdl_int_seq * ops, asdl_expr_seq *
827
+ comparators, int lineno, int col_offset, int end_lineno,
828
+ int end_col_offset, PyArena *arena);
829
+ expr_ty _PyAST_Call(expr_ty func, asdl_expr_seq * args, asdl_keyword_seq *
830
+ keywords, int lineno, int col_offset, int end_lineno, int
831
+ end_col_offset, PyArena *arena);
832
+ expr_ty _PyAST_FormattedValue(expr_ty value, int conversion, expr_ty
833
+ format_spec, int lineno, int col_offset, int
834
+ end_lineno, int end_col_offset, PyArena *arena);
835
+ expr_ty _PyAST_Interpolation(expr_ty value, constant str, int conversion,
836
+ expr_ty format_spec, int lineno, int col_offset,
837
+ int end_lineno, int end_col_offset, PyArena
838
+ *arena);
839
+ expr_ty _PyAST_JoinedStr(asdl_expr_seq * values, int lineno, int col_offset,
840
+ int end_lineno, int end_col_offset, PyArena *arena);
841
+ expr_ty _PyAST_TemplateStr(asdl_expr_seq * values, int lineno, int col_offset,
842
+ int end_lineno, int end_col_offset, PyArena *arena);
843
+ expr_ty _PyAST_Constant(constant value, string kind, int lineno, int
844
+ col_offset, int end_lineno, int end_col_offset, PyArena
845
+ *arena);
846
+ expr_ty _PyAST_Attribute(expr_ty value, identifier attr, expr_context_ty ctx,
847
+ int lineno, int col_offset, int end_lineno, int
848
+ end_col_offset, PyArena *arena);
849
+ expr_ty _PyAST_Subscript(expr_ty value, expr_ty slice, expr_context_ty ctx, int
850
+ lineno, int col_offset, int end_lineno, int
851
+ end_col_offset, PyArena *arena);
852
+ expr_ty _PyAST_Starred(expr_ty value, expr_context_ty ctx, int lineno, int
853
+ col_offset, int end_lineno, int end_col_offset, PyArena
854
+ *arena);
855
+ expr_ty _PyAST_Name(identifier id, expr_context_ty ctx, int lineno, int
856
+ col_offset, int end_lineno, int end_col_offset, PyArena
857
+ *arena);
858
+ expr_ty _PyAST_List(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int
859
+ col_offset, int end_lineno, int end_col_offset, PyArena
860
+ *arena);
861
+ expr_ty _PyAST_Tuple(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int
862
+ col_offset, int end_lineno, int end_col_offset, PyArena
863
+ *arena);
864
+ expr_ty _PyAST_Slice(expr_ty lower, expr_ty upper, expr_ty step, int lineno,
865
+ int col_offset, int end_lineno, int end_col_offset,
866
+ PyArena *arena);
867
+ comprehension_ty _PyAST_comprehension(expr_ty target, expr_ty iter,
868
+ asdl_expr_seq * ifs, int is_async,
869
+ PyArena *arena);
870
+ excepthandler_ty _PyAST_ExceptHandler(expr_ty type, identifier name,
871
+ asdl_stmt_seq * body, int lineno, int
872
+ col_offset, int end_lineno, int
873
+ end_col_offset, PyArena *arena);
874
+ arguments_ty _PyAST_arguments(asdl_arg_seq * posonlyargs, asdl_arg_seq * args,
875
+ arg_ty vararg, asdl_arg_seq * kwonlyargs,
876
+ asdl_expr_seq * kw_defaults, arg_ty kwarg,
877
+ asdl_expr_seq * defaults, PyArena *arena);
878
+ arg_ty _PyAST_arg(identifier arg, expr_ty annotation, string type_comment, int
879
+ lineno, int col_offset, int end_lineno, int end_col_offset,
880
+ PyArena *arena);
881
+ keyword_ty _PyAST_keyword(identifier arg, expr_ty value, int lineno, int
882
+ col_offset, int end_lineno, int end_col_offset,
883
+ PyArena *arena);
884
+ alias_ty _PyAST_alias(identifier name, identifier asname, int lineno, int
885
+ col_offset, int end_lineno, int end_col_offset, PyArena
886
+ *arena);
887
+ withitem_ty _PyAST_withitem(expr_ty context_expr, expr_ty optional_vars,
888
+ PyArena *arena);
889
+ match_case_ty _PyAST_match_case(pattern_ty pattern, expr_ty guard,
890
+ asdl_stmt_seq * body, PyArena *arena);
891
+ pattern_ty _PyAST_MatchValue(expr_ty value, int lineno, int col_offset, int
892
+ end_lineno, int end_col_offset, PyArena *arena);
893
+ pattern_ty _PyAST_MatchSingleton(constant value, int lineno, int col_offset,
894
+ int end_lineno, int end_col_offset, PyArena
895
+ *arena);
896
+ pattern_ty _PyAST_MatchSequence(asdl_pattern_seq * patterns, int lineno, int
897
+ col_offset, int end_lineno, int end_col_offset,
898
+ PyArena *arena);
899
+ pattern_ty _PyAST_MatchMapping(asdl_expr_seq * keys, asdl_pattern_seq *
900
+ patterns, identifier rest, int lineno, int
901
+ col_offset, int end_lineno, int end_col_offset,
902
+ PyArena *arena);
903
+ pattern_ty _PyAST_MatchClass(expr_ty cls, asdl_pattern_seq * patterns,
904
+ asdl_identifier_seq * kwd_attrs, asdl_pattern_seq
905
+ * kwd_patterns, int lineno, int col_offset, int
906
+ end_lineno, int end_col_offset, PyArena *arena);
907
+ pattern_ty _PyAST_MatchStar(identifier name, int lineno, int col_offset, int
908
+ end_lineno, int end_col_offset, PyArena *arena);
909
+ pattern_ty _PyAST_MatchAs(pattern_ty pattern, identifier name, int lineno, int
910
+ col_offset, int end_lineno, int end_col_offset,
911
+ PyArena *arena);
912
+ pattern_ty _PyAST_MatchOr(asdl_pattern_seq * patterns, int lineno, int
913
+ col_offset, int end_lineno, int end_col_offset,
914
+ PyArena *arena);
915
+ type_ignore_ty _PyAST_TypeIgnore(int lineno, string tag, PyArena *arena);
916
+ type_param_ty _PyAST_TypeVar(identifier name, expr_ty bound, expr_ty
917
+ default_value, int lineno, int col_offset, int
918
+ end_lineno, int end_col_offset, PyArena *arena);
919
+ type_param_ty _PyAST_ParamSpec(identifier name, expr_ty default_value, int
920
+ lineno, int col_offset, int end_lineno, int
921
+ end_col_offset, PyArena *arena);
922
+ type_param_ty _PyAST_TypeVarTuple(identifier name, expr_ty default_value, int
923
+ lineno, int col_offset, int end_lineno, int
924
+ end_col_offset, PyArena *arena);
925
+
926
+
927
+ PyObject* PyAST_mod2obj(mod_ty t);
928
+ int PyAst_CheckMode(PyObject *ast, int mode);
929
+ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode);
930
+ int PyAST_Check(PyObject* obj);
931
+
932
+ extern int _PyAST_Validate(mod_ty);
933
+
934
+ /* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
935
+ extern PyObject* _PyAST_ExprAsUnicode(expr_ty);
936
+
937
+ /* Return the borrowed reference to the first literal string in the
938
+ sequence of statements or NULL if it doesn't start from a literal string.
939
+ Doesn't set exception. */
940
+ extern PyObject* _PyAST_GetDocString(asdl_stmt_seq *);
941
+
942
+ #ifdef __cplusplus
943
+ }
944
+ #endif
945
+ #endif /* !Py_INTERNAL_AST_H */