python-cc 0.0.3__tar.gz → 0.0.5__tar.gz

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 (394) hide show
  1. {python_cc-0.0.3 → python_cc-0.0.5}/.gitignore +1 -0
  2. python_cc-0.0.5/LICENSE +21 -0
  3. {python_cc-0.0.3 → python_cc-0.0.5}/PKG-INFO +23 -20
  4. {python_cc-0.0.3 → python_cc-0.0.5}/README.md +19 -16
  5. {python_cc-0.0.3 → python_cc-0.0.5}/pyproject.toml +4 -4
  6. python_cc-0.0.3/.python-version +0 -1
  7. python_cc-0.0.3/LICENSE +0 -25
  8. {python_cc-0.0.3 → python_cc-0.0.5}/.github/workflows/workflow.yml +0 -0
  9. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/ackermann.c +0 -0
  10. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/basic_arithmetic.c +0 -0
  11. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/calculator_project/main.c +0 -0
  12. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/calculator_project/ops.c +0 -0
  13. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/calculator_project/stack.h +0 -0
  14. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/collatz.c +0 -0
  15. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/conditional.c +0 -0
  16. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/fibonacci.c +0 -0
  17. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/game_of_life.c +0 -0
  18. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/hanoi.c +0 -0
  19. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/mathutil.h +0 -0
  20. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/quicksort.c +0 -0
  21. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/search.h +0 -0
  22. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/sieve.c +0 -0
  23. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/sort_project/main.c +0 -0
  24. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/sort_project/sort.c +0 -0
  25. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/sort_project/sort.h +0 -0
  26. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/stack.h +0 -0
  27. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/standard_c.c +0 -0
  28. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/string_project/main.c +0 -0
  29. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/string_project/mystring.c +0 -0
  30. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/string_project/mystring.h +0 -0
  31. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/struct_layout.c +0 -0
  32. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/unsigned_cmp.c +0 -0
  33. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/use_mathutil.c +0 -0
  34. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/use_search.c +0 -0
  35. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/use_stack.c +0 -0
  36. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/use_vec.c +0 -0
  37. {python_cc-0.0.3 → python_cc-0.0.5}/c_tests/vec.h +0 -0
  38. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/.gitignore +0 -0
  39. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/README.md +0 -0
  40. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/and.c +0 -0
  41. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/cast.c +0 -0
  42. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/if.c +0 -0
  43. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/malloc.c +0 -0
  44. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/simple_func.c +0 -0
  45. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/simple_int.c +0 -0
  46. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/simple_pointer.c +0 -0
  47. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/simple_printf.c +0 -0
  48. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/simple_recurse.c +0 -0
  49. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/struct.c +0 -0
  50. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/test_arrary.c +0 -0
  51. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/test_double_array.c +0 -0
  52. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/test_if_else.c +0 -0
  53. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/test_int.c +0 -0
  54. {python_cc-0.0.3 → python_cc-0.0.5}/clang_study/test_puts.c +0 -0
  55. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/__init__.py +0 -0
  56. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/__main__.py +0 -0
  57. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ast/__init__.py +0 -0
  58. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ast/ast.py +0 -0
  59. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ast/ast_transforms.py +0 -0
  60. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ast/c_ast.py +0 -0
  61. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/codegen/__init__.py +0 -0
  62. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/codegen/c_codegen.py +0 -0
  63. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/evaluater/__init__.py +0 -0
  64. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/evaluater/c_evaluator.py +0 -0
  65. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/generator/__init__.py +0 -0
  66. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/generator/c_generator.py +0 -0
  67. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/lex/__init__.py +0 -0
  68. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/lex/c_lexer.py +0 -0
  69. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/lex/lexer.py +0 -0
  70. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/lex/token.py +0 -0
  71. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/parse/__init__.py +0 -0
  72. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/parse/c_parser.py +0 -0
  73. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/parse/file_parser.py +0 -0
  74. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/parse/parser.py +0 -0
  75. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/parse/plyparser.py +0 -0
  76. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/pcc.py +0 -0
  77. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ply/__init__.py +0 -0
  78. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ply/cpp.py +0 -0
  79. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ply/ctokens.py +0 -0
  80. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ply/lex.py +0 -0
  81. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ply/yacc.py +0 -0
  82. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/ply/ygen.py +0 -0
  83. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/preprocessor.py +0 -0
  84. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/project.py +0 -0
  85. {python_cc-0.0.3 → python_cc-0.0.5}/pcc/util.py +0 -0
  86. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/.gitignore +0 -0
  87. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/README.md +0 -0
  88. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/all +0 -0
  89. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lapi.c +0 -0
  90. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lapi.h +0 -0
  91. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lauxlib.c +0 -0
  92. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lauxlib.h +0 -0
  93. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lbaselib.c +0 -0
  94. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lcode.c +0 -0
  95. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lcode.h +0 -0
  96. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lcorolib.c +0 -0
  97. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lctype.c +0 -0
  98. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lctype.h +0 -0
  99. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ldblib.c +0 -0
  100. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ldebug.c +0 -0
  101. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ldebug.h +0 -0
  102. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ldo.c +0 -0
  103. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ldo.h +0 -0
  104. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ldump.c +0 -0
  105. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lfunc.c +0 -0
  106. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lfunc.h +0 -0
  107. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lgc.c +0 -0
  108. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lgc.h +0 -0
  109. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/linit.c +0 -0
  110. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/liolib.c +0 -0
  111. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ljumptab.h +0 -0
  112. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/llex.c +0 -0
  113. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/llex.h +0 -0
  114. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/llimits.h +0 -0
  115. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lmathlib.c +0 -0
  116. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lmem.c +0 -0
  117. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lmem.h +0 -0
  118. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/loadlib.c +0 -0
  119. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lobject.c +0 -0
  120. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lobject.h +0 -0
  121. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lopcodes.c +0 -0
  122. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lopcodes.h +0 -0
  123. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lopnames.h +0 -0
  124. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/loslib.c +0 -0
  125. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lparser.c +0 -0
  126. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lparser.h +0 -0
  127. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lprefix.h +0 -0
  128. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lstate.c +0 -0
  129. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lstate.h +0 -0
  130. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lstring.c +0 -0
  131. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lstring.h +0 -0
  132. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lstrlib.c +0 -0
  133. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ltable.c +0 -0
  134. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ltable.h +0 -0
  135. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ltablib.c +0 -0
  136. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ltests.c +0 -0
  137. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ltests.h +0 -0
  138. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ltm.c +0 -0
  139. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/ltm.h +0 -0
  140. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lua.c +0 -0
  141. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lua.h +0 -0
  142. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/luaconf.h +0 -0
  143. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lualib.h +0 -0
  144. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lundump.c +0 -0
  145. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lundump.h +0 -0
  146. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lutf8lib.c +0 -0
  147. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lvm.c +0 -0
  148. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lvm.h +0 -0
  149. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lzio.c +0 -0
  150. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/lzio.h +0 -0
  151. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/makefile +0 -0
  152. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/manual/2html +0 -0
  153. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/manual/manual.of +0 -0
  154. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/onelua.c +0 -0
  155. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/all.lua +0 -0
  156. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/api.lua +0 -0
  157. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/attrib.lua +0 -0
  158. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/big.lua +0 -0
  159. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/bitwise.lua +0 -0
  160. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/bwcoercion.lua +0 -0
  161. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/calls.lua +0 -0
  162. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/closure.lua +0 -0
  163. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/code.lua +0 -0
  164. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/constructs.lua +0 -0
  165. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/coroutine.lua +0 -0
  166. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/cstack.lua +0 -0
  167. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/db.lua +0 -0
  168. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/errors.lua +0 -0
  169. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/events.lua +0 -0
  170. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/files.lua +0 -0
  171. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/gc.lua +0 -0
  172. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/gengc.lua +0 -0
  173. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/goto.lua +0 -0
  174. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/heavy.lua +0 -0
  175. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/libs/P1/dummy +0 -0
  176. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/libs/lib1.c +0 -0
  177. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/libs/lib11.c +0 -0
  178. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/libs/lib2.c +0 -0
  179. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/libs/lib21.c +0 -0
  180. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/libs/lib22.c +0 -0
  181. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/libs/makefile +0 -0
  182. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/literals.lua +0 -0
  183. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/locals.lua +0 -0
  184. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/main.lua +0 -0
  185. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/math.lua +0 -0
  186. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/memerr.lua +0 -0
  187. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/nextvar.lua +0 -0
  188. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/packtests +0 -0
  189. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/pm.lua +0 -0
  190. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/sort.lua +0 -0
  191. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/strings.lua +0 -0
  192. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/tpack.lua +0 -0
  193. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/tracegc.lua +0 -0
  194. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/utf8.lua +0 -0
  195. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/vararg.lua +0 -0
  196. {python_cc-0.0.3 → python_cc-0.0.5}/projects/lua-5.5.0/testes/verybig.lua +0 -0
  197. {python_cc-0.0.3 → python_cc-0.0.5}/tests/README.txt +0 -0
  198. {python_cc-0.0.3 → python_cc-0.0.5}/tests/__init__.py +0 -0
  199. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/cppd_with_stdio_h.c +0 -0
  200. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/empty.h +0 -0
  201. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/example_c_file.c +0 -0
  202. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/hdir/9/inc.h +0 -0
  203. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/memmgr.c +0 -0
  204. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/memmgr.h +0 -0
  205. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/memmgr_with_h.c +0 -0
  206. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/simplemain.c +0 -0
  207. {python_cc-0.0.3 → python_cc-0.0.5}/tests/c_files/year.c +0 -0
  208. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_advanced.py +0 -0
  209. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_algorithms.py +0 -0
  210. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_and.py +0 -0
  211. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_array.py +0 -0
  212. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_array_init.py +0 -0
  213. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_arrow.py +0 -0
  214. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_assign.py +0 -0
  215. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_bitwise.py +0 -0
  216. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_c_ast.py +0 -0
  217. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_c_evluater.py +0 -0
  218. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_c_files.py +0 -0
  219. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_c_generator.py +0 -0
  220. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_c_lexer.py +0 -0
  221. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_c_parser.py +0 -0
  222. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_cast.py +0 -0
  223. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_cast_int_to_double.py +0 -0
  224. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_char.py +0 -0
  225. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_comments.py +0 -0
  226. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_compound_assign.py +0 -0
  227. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_contract.py +0 -0
  228. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_div_mod.py +0 -0
  229. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_do_while.py +0 -0
  230. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_double.py +0 -0
  231. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_double_array.py +0 -0
  232. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_edge_cases.py +0 -0
  233. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_else_if.py +0 -0
  234. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_enum.py +0 -0
  235. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_expr_list.py +0 -0
  236. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_final.py +0 -0
  237. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_float_semantics.py +0 -0
  238. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_for.py +0 -0
  239. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_for_break.py +0 -0
  240. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_for_infinite.py +0 -0
  241. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_forward_decl.py +0 -0
  242. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_func_ptr.py +0 -0
  243. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_func_return_ptr.py +0 -0
  244. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_general.py +0 -0
  245. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_global.py +0 -0
  246. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_goto.py +0 -0
  247. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_hex_octal.py +0 -0
  248. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_if.py +0 -0
  249. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_if_else.py +0 -0
  250. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_int.py +0 -0
  251. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_integration.py +0 -0
  252. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_libc.py +0 -0
  253. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_libc_extra.py +0 -0
  254. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_libc_math.py +0 -0
  255. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_llvmliite_array.py +0 -0
  256. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_local.py +0 -0
  257. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_lua.py +0 -0
  258. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_lua_features.py +0 -0
  259. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_main_arg.py +0 -0
  260. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_main_return_ptr.py +0 -0
  261. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_malloc.py +0 -0
  262. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_memset_free.py +0 -0
  263. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_mixed_types.py +0 -0
  264. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_named_struct.py +0 -0
  265. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_nest_loop.py +0 -0
  266. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_nest_loop1.py +0 -0
  267. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_param_array_decay.py +0 -0
  268. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_pointer.py +0 -0
  269. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_pre_inc_dec.py +0 -0
  270. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_preprocessor.py +0 -0
  271. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_printf.py +0 -0
  272. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_ptr_arith.py +0 -0
  273. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_real_programs.py +0 -0
  274. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_return_list.py +0 -0
  275. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_short_circuit.py +0 -0
  276. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_showcase.py +0 -0
  277. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_simple_func.py +0 -0
  278. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_simple_init_func_assign.py +0 -0
  279. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_simple_no_args.py +0 -0
  280. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_sizeof.py +0 -0
  281. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_static.py +0 -0
  282. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_string_escape.py +0 -0
  283. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_string_ptr.py +0 -0
  284. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_strlen_strcmp.py +0 -0
  285. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_struct.py +0 -0
  286. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_struct_array_member.py +0 -0
  287. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_switch.py +0 -0
  288. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_ternary.py +0 -0
  289. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_type_convert.py +0 -0
  290. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_type_modifiers.py +0 -0
  291. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_typedef.py +0 -0
  292. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_unary.py +0 -0
  293. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_union_const_init.py +0 -0
  294. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_union_ptrarray.py +0 -0
  295. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_unsigned_loads.py +0 -0
  296. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_varargs.py +0 -0
  297. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_void.py +0 -0
  298. {python_cc-0.0.3 → python_cc-0.0.5}/tests/test_while.py +0 -0
  299. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/_ansi.h +0 -0
  300. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/_fake_defines.h +0 -0
  301. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/_fake_typedefs.h +0 -0
  302. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/_syslist.h +0 -0
  303. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/alloca.h +0 -0
  304. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/ar.h +0 -0
  305. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/argz.h +0 -0
  306. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/arpa/inet.h +0 -0
  307. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/assert.h +0 -0
  308. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/complex.h +0 -0
  309. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/ctype.h +0 -0
  310. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/dirent.h +0 -0
  311. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/dlfcn.h +0 -0
  312. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/endian.h +0 -0
  313. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/envz.h +0 -0
  314. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/errno.h +0 -0
  315. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/fastmath.h +0 -0
  316. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/fcntl.h +0 -0
  317. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/features.h +0 -0
  318. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/fenv.h +0 -0
  319. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/float.h +0 -0
  320. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/getopt.h +0 -0
  321. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/grp.h +0 -0
  322. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/iconv.h +0 -0
  323. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/ieeefp.h +0 -0
  324. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/inttypes.h +0 -0
  325. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/iso646.h +0 -0
  326. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/langinfo.h +0 -0
  327. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/libgen.h +0 -0
  328. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/libintl.h +0 -0
  329. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/limits.h +0 -0
  330. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/linux/version.h +0 -0
  331. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/locale.h +0 -0
  332. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/malloc.h +0 -0
  333. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/math.h +0 -0
  334. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/netdb.h +0 -0
  335. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/netinet/in.h +0 -0
  336. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/netinet/tcp.h +0 -0
  337. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/newlib.h +0 -0
  338. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/openssl/err.h +0 -0
  339. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/openssl/evp.h +0 -0
  340. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/openssl/hmac.h +0 -0
  341. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/openssl/ssl.h +0 -0
  342. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/openssl/x509v3.h +0 -0
  343. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/paths.h +0 -0
  344. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/process.h +0 -0
  345. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/pthread.h +0 -0
  346. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/pwd.h +0 -0
  347. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/reent.h +0 -0
  348. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/regdef.h +0 -0
  349. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/regex.h +0 -0
  350. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sched.h +0 -0
  351. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/search.h +0 -0
  352. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/semaphore.h +0 -0
  353. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/setjmp.h +0 -0
  354. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/signal.h +0 -0
  355. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/stdarg.h +0 -0
  356. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/stdbool.h +0 -0
  357. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/stddef.h +0 -0
  358. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/stdint.h +0 -0
  359. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/stdio.h +0 -0
  360. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/stdlib.h +0 -0
  361. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/string.h +0 -0
  362. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/ioctl.h +0 -0
  363. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/mman.h +0 -0
  364. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/poll.h +0 -0
  365. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/resource.h +0 -0
  366. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/select.h +0 -0
  367. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/socket.h +0 -0
  368. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/stat.h +0 -0
  369. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/sysctl.h +0 -0
  370. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/time.h +0 -0
  371. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/types.h +0 -0
  372. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/uio.h +0 -0
  373. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/un.h +0 -0
  374. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/utsname.h +0 -0
  375. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/sys/wait.h +0 -0
  376. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/syslog.h +0 -0
  377. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/tar.h +0 -0
  378. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/termios.h +0 -0
  379. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/tgmath.h +0 -0
  380. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/time.h +0 -0
  381. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/unctrl.h +0 -0
  382. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/unistd.h +0 -0
  383. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/utime.h +0 -0
  384. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/utmp.h +0 -0
  385. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/wchar.h +0 -0
  386. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/wctype.h +0 -0
  387. {python_cc-0.0.3 → python_cc-0.0.5}/utils/fake_libc_include/zlib.h +0 -0
  388. {python_cc-0.0.3 → python_cc-0.0.5}/utils/internal/constptr.c +0 -0
  389. {python_cc-0.0.3 → python_cc-0.0.5}/utils/internal/example_c_file.c +0 -0
  390. {python_cc-0.0.3 → python_cc-0.0.5}/utils/internal/fake_includes.py +0 -0
  391. {python_cc-0.0.3 → python_cc-0.0.5}/utils/internal/make_fake_typedefs.py +0 -0
  392. {python_cc-0.0.3 → python_cc-0.0.5}/utils/internal/memprofiling.py +0 -0
  393. {python_cc-0.0.3 → python_cc-0.0.5}/utils/internal/zc.c +0 -0
  394. {python_cc-0.0.3 → python_cc-0.0.5}/utils/internal/zz_parse.py +0 -0
@@ -1,3 +1,4 @@
1
+ .DS_Store
1
2
  *.out
2
3
  *.s
3
4
  # Byte-compiled / optimized / DLL files
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 jiamo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-cc
3
- Version: 0.0.3
3
+ Version: 0.0.5
4
4
  Summary: Pcc is a c compiler built on python and llvm.
5
- Project-URL: Homepage, http://pypi.python.org/pypi/pcc/
6
- License-Expression: BSD-3-Clause
5
+ Project-URL: Homepage, https://github.com/jiamo/pcc
6
+ License-Expression: MIT
7
7
  License-File: LICENSE
8
8
  Keywords: c,compiler,llvm,ply
9
- Requires-Python: >=3.10
9
+ Requires-Python: >=3.13
10
10
  Requires-Dist: click
11
11
  Requires-Dist: llvmlite==0.46.0
12
12
  Description-Content-Type: text/markdown
@@ -25,28 +25,30 @@ Notice
25
25
  1. Some code skeleton comes from pykaleidoscope.
26
26
  2. ply and pycparser are embedded into this project for debug use.
27
27
 
28
- Development
28
+ Install
29
29
  --------------------
30
30
 
31
- Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
32
-
33
31
  ```bash
34
- uv sync # install dependencies
35
- uv run pytest # run all 400+ tests (~10s parallel)
32
+ pip install python-cc
36
33
  ```
37
34
 
38
- Run pcc
39
- --------------------
35
+ This gives you the `pcc` command:
40
36
 
41
37
  ```bash
42
- # Single file
43
- uv run pcc hello.c
38
+ pcc hello.c # compile and run
39
+ pcc myproject/ # compile all .c files in directory
40
+ pcc --llvmdump test.c # dump LLVM IR
41
+ pcc myproject/ -- arg1 arg2 # pass args to compiled program
42
+ ```
44
43
 
45
- # Multi-file project (auto-collects all .c files, resolves .h includes)
46
- uv run pcc myproject/
44
+ Development
45
+ --------------------
46
+
47
+ Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
47
48
 
48
- # Dump LLVM IR
49
- uv run pcc --llvmdump test.c
49
+ ```bash
50
+ uv sync # install dependencies
51
+ uv run pytest # run all 500+ tests
50
52
  ```
51
53
 
52
54
  Multi-file projects: put `.c` and `.h` files in a directory, one `.c` must contain `main()`. Pcc auto-discovers all `.c` files, merges them, and compiles.
@@ -72,8 +74,8 @@ Tests in `tests/test_lua.py` compare three builds:
72
74
  | **makefile** | `make` with project Makefile (separate compilation of each .c, static lib + link) |
73
75
 
74
76
  ```bash
75
- # Run all Lua tests (slow marker, ~5 min with 4 workers)
76
- uv run pytest tests/test_lua.py -m slow -v -n 4
77
+ # Run all Lua tests (~25s with auto workers)
78
+ uv run pytest tests/test_lua.py -v
77
79
 
78
80
  # Individual file compilation through pcc pipeline
79
81
  uv run pytest tests/test_lua.py::test_lua_source_compile -v
@@ -82,7 +84,8 @@ uv run pytest tests/test_lua.py::test_pcc_runtime_matches_native -v
82
84
  # pcc vs Makefile-built lua (official reference)
83
85
  uv run pytest tests/test_lua.py::test_pcc_runtime_matches_makefile -v
84
86
  # Lua test suite with Makefile-built binary (baseline)
85
- uv run pytest tests/test_lua.py::test_makefile_lua_test_suite -v```
87
+ uv run pytest tests/test_lua.py::test_makefile_lua_test_suite -v
88
+ ```
86
89
 
87
90
  Note: `heavy.lua` is excluded from automated tests (runs ~2 min+, may timeout). Run manually:
88
91
  ```bash
@@ -12,28 +12,30 @@ Notice
12
12
  1. Some code skeleton comes from pykaleidoscope.
13
13
  2. ply and pycparser are embedded into this project for debug use.
14
14
 
15
- Development
15
+ Install
16
16
  --------------------
17
17
 
18
- Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
19
-
20
18
  ```bash
21
- uv sync # install dependencies
22
- uv run pytest # run all 400+ tests (~10s parallel)
19
+ pip install python-cc
23
20
  ```
24
21
 
25
- Run pcc
26
- --------------------
22
+ This gives you the `pcc` command:
27
23
 
28
24
  ```bash
29
- # Single file
30
- uv run pcc hello.c
25
+ pcc hello.c # compile and run
26
+ pcc myproject/ # compile all .c files in directory
27
+ pcc --llvmdump test.c # dump LLVM IR
28
+ pcc myproject/ -- arg1 arg2 # pass args to compiled program
29
+ ```
31
30
 
32
- # Multi-file project (auto-collects all .c files, resolves .h includes)
33
- uv run pcc myproject/
31
+ Development
32
+ --------------------
33
+
34
+ Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
34
35
 
35
- # Dump LLVM IR
36
- uv run pcc --llvmdump test.c
36
+ ```bash
37
+ uv sync # install dependencies
38
+ uv run pytest # run all 500+ tests
37
39
  ```
38
40
 
39
41
  Multi-file projects: put `.c` and `.h` files in a directory, one `.c` must contain `main()`. Pcc auto-discovers all `.c` files, merges them, and compiles.
@@ -59,8 +61,8 @@ Tests in `tests/test_lua.py` compare three builds:
59
61
  | **makefile** | `make` with project Makefile (separate compilation of each .c, static lib + link) |
60
62
 
61
63
  ```bash
62
- # Run all Lua tests (slow marker, ~5 min with 4 workers)
63
- uv run pytest tests/test_lua.py -m slow -v -n 4
64
+ # Run all Lua tests (~25s with auto workers)
65
+ uv run pytest tests/test_lua.py -v
64
66
 
65
67
  # Individual file compilation through pcc pipeline
66
68
  uv run pytest tests/test_lua.py::test_lua_source_compile -v
@@ -69,7 +71,8 @@ uv run pytest tests/test_lua.py::test_pcc_runtime_matches_native -v
69
71
  # pcc vs Makefile-built lua (official reference)
70
72
  uv run pytest tests/test_lua.py::test_pcc_runtime_matches_makefile -v
71
73
  # Lua test suite with Makefile-built binary (baseline)
72
- uv run pytest tests/test_lua.py::test_makefile_lua_test_suite -v```
74
+ uv run pytest tests/test_lua.py::test_makefile_lua_test_suite -v
75
+ ```
73
76
 
74
77
  Note: `heavy.lua` is excluded from automated tests (runs ~2 min+, may timeout). Run manually:
75
78
  ```bash
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "python-cc"
3
- version = "0.0.3"
3
+ version = "0.0.5"
4
4
  description = "Pcc is a c compiler built on python and llvm."
5
5
  readme = "README.md"
6
- license = "BSD-3-Clause"
7
- requires-python = ">=3.10"
6
+ license = "MIT"
7
+ requires-python = ">=3.13"
8
8
  keywords = ["c", "compiler", "llvm", "ply"]
9
9
  dependencies = [
10
10
  "llvmlite==0.46.0",
@@ -15,7 +15,7 @@ dependencies = [
15
15
  pcc = "pcc.pcc:main"
16
16
 
17
17
  [project.urls]
18
- Homepage = "http://pypi.python.org/pypi/pcc/"
18
+ Homepage = "https://github.com/jiamo/pcc"
19
19
 
20
20
  [build-system]
21
21
  requires = ["hatchling"]
@@ -1 +0,0 @@
1
- 3.13
python_cc-0.0.3/LICENSE DELETED
@@ -1,25 +0,0 @@
1
- This is free and unencumbered software released into the public domain.
2
-
3
- Anyone is free to copy, modify, publish, use, compile, sell, or
4
- distribute this software, either in source code form or as a compiled
5
- binary, for any purpose, commercial or non-commercial, and by any
6
- means.
7
-
8
- In jurisdictions that recognize copyright laws, the author or authors
9
- of this software dedicate any and all copyright interest in the
10
- software to the public domain. We make this dedication for the benefit
11
- of the public at large and to the detriment of our heirs and
12
- successors. We intend this dedication to be an overt act of
13
- relinquishment in perpetuity of all present and future rights to this
14
- software under copyright law.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
23
-
24
- For more information, please refer to <http://unlicense.org>
25
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes