python-cc 0.0.3__tar.gz → 0.0.4__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.
- {python_cc-0.0.3 → python_cc-0.0.4}/.gitignore +1 -0
- python_cc-0.0.4/LICENSE +21 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/PKG-INFO +23 -20
- {python_cc-0.0.3 → python_cc-0.0.4}/README.md +19 -16
- {python_cc-0.0.3 → python_cc-0.0.4}/pyproject.toml +4 -4
- python_cc-0.0.3/.python-version +0 -1
- python_cc-0.0.3/LICENSE +0 -25
- {python_cc-0.0.3 → python_cc-0.0.4}/.github/workflows/workflow.yml +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/ackermann.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/basic_arithmetic.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/calculator_project/main.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/calculator_project/ops.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/calculator_project/stack.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/collatz.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/conditional.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/fibonacci.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/game_of_life.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/hanoi.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/mathutil.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/quicksort.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/search.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/sieve.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/sort_project/main.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/sort_project/sort.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/sort_project/sort.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/stack.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/standard_c.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/string_project/main.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/string_project/mystring.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/string_project/mystring.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/struct_layout.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/unsigned_cmp.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/use_mathutil.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/use_search.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/use_stack.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/use_vec.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/c_tests/vec.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/.gitignore +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/README.md +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/and.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/cast.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/if.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/malloc.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/simple_func.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/simple_int.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/simple_pointer.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/simple_printf.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/simple_recurse.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/struct.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/test_arrary.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/test_double_array.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/test_if_else.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/test_int.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/clang_study/test_puts.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/__main__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ast/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ast/ast.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ast/ast_transforms.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ast/c_ast.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/codegen/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/codegen/c_codegen.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/evaluater/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/evaluater/c_evaluator.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/generator/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/generator/c_generator.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/lex/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/lex/c_lexer.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/lex/lexer.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/lex/token.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/parse/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/parse/c_parser.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/parse/file_parser.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/parse/parser.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/parse/plyparser.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/pcc.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ply/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ply/cpp.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ply/ctokens.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ply/lex.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ply/yacc.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/ply/ygen.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/preprocessor.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/project.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/pcc/util.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/.gitignore +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/README.md +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/all +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lapi.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lapi.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lauxlib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lauxlib.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lbaselib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lcode.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lcode.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lcorolib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lctype.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lctype.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ldblib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ldebug.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ldebug.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ldo.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ldo.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ldump.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lfunc.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lfunc.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lgc.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lgc.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/linit.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/liolib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ljumptab.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/llex.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/llex.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/llimits.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lmathlib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lmem.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lmem.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/loadlib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lobject.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lobject.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lopcodes.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lopcodes.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lopnames.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/loslib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lparser.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lparser.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lprefix.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lstate.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lstate.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lstring.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lstring.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lstrlib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ltable.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ltable.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ltablib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ltests.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ltests.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ltm.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/ltm.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lua.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lua.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/luaconf.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lualib.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lundump.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lundump.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lutf8lib.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lvm.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lvm.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lzio.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/lzio.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/makefile +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/manual/2html +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/manual/manual.of +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/onelua.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/all.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/api.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/attrib.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/big.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/bitwise.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/bwcoercion.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/calls.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/closure.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/code.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/constructs.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/coroutine.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/cstack.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/db.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/errors.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/events.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/files.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/gc.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/gengc.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/goto.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/heavy.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/libs/P1/dummy +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/libs/lib1.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/libs/lib11.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/libs/lib2.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/libs/lib21.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/libs/lib22.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/libs/makefile +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/literals.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/locals.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/main.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/math.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/memerr.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/nextvar.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/packtests +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/pm.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/sort.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/strings.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/tpack.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/tracegc.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/utf8.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/vararg.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/projects/lua-5.5.0/testes/verybig.lua +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/README.txt +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/__init__.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/cppd_with_stdio_h.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/empty.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/example_c_file.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/hdir/9/inc.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/memmgr.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/memmgr.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/memmgr_with_h.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/simplemain.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/c_files/year.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_advanced.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_algorithms.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_and.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_array.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_array_init.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_arrow.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_assign.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_bitwise.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_c_ast.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_c_evluater.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_c_files.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_c_generator.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_c_lexer.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_c_parser.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_cast.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_cast_int_to_double.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_char.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_comments.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_compound_assign.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_contract.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_div_mod.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_do_while.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_double.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_double_array.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_edge_cases.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_else_if.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_enum.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_expr_list.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_final.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_float_semantics.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_for.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_for_break.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_for_infinite.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_forward_decl.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_func_ptr.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_func_return_ptr.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_general.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_global.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_goto.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_hex_octal.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_if.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_if_else.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_int.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_integration.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_libc.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_libc_extra.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_libc_math.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_llvmliite_array.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_local.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_lua.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_lua_features.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_main_arg.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_main_return_ptr.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_malloc.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_memset_free.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_mixed_types.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_named_struct.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_nest_loop.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_nest_loop1.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_param_array_decay.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_pointer.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_pre_inc_dec.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_preprocessor.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_printf.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_ptr_arith.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_real_programs.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_return_list.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_short_circuit.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_showcase.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_simple_func.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_simple_init_func_assign.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_simple_no_args.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_sizeof.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_static.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_string_escape.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_string_ptr.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_strlen_strcmp.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_struct.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_struct_array_member.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_switch.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_ternary.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_type_convert.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_type_modifiers.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_typedef.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_unary.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_union_const_init.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_union_ptrarray.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_unsigned_loads.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_varargs.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_void.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/tests/test_while.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/_ansi.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/_fake_defines.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/_fake_typedefs.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/_syslist.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/alloca.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/ar.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/argz.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/arpa/inet.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/assert.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/complex.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/ctype.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/dirent.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/dlfcn.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/endian.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/envz.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/errno.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/fastmath.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/fcntl.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/features.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/fenv.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/float.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/getopt.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/grp.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/iconv.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/ieeefp.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/inttypes.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/iso646.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/langinfo.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/libgen.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/libintl.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/limits.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/linux/version.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/locale.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/malloc.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/math.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/netdb.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/netinet/in.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/netinet/tcp.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/newlib.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/openssl/err.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/openssl/evp.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/openssl/hmac.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/openssl/ssl.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/openssl/x509v3.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/paths.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/process.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/pthread.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/pwd.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/reent.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/regdef.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/regex.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sched.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/search.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/semaphore.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/setjmp.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/signal.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/stdarg.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/stdbool.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/stddef.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/stdint.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/stdio.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/stdlib.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/string.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/ioctl.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/mman.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/poll.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/resource.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/select.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/socket.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/stat.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/sysctl.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/time.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/types.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/uio.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/un.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/utsname.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/sys/wait.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/syslog.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/tar.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/termios.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/tgmath.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/time.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/unctrl.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/unistd.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/utime.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/utmp.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/wchar.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/wctype.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/fake_libc_include/zlib.h +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/internal/constptr.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/internal/example_c_file.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/internal/fake_includes.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/internal/make_fake_typedefs.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/internal/memprofiling.py +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/internal/zc.c +0 -0
- {python_cc-0.0.3 → python_cc-0.0.4}/utils/internal/zz_parse.py +0 -0
python_cc-0.0.4/LICENSE
ADDED
|
@@ -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
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Pcc is a c compiler built on python and llvm.
|
|
5
|
-
Project-URL: Homepage,
|
|
6
|
-
License-Expression:
|
|
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.
|
|
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
|
-
|
|
28
|
+
Install
|
|
29
29
|
--------------------
|
|
30
30
|
|
|
31
|
-
Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
|
|
32
|
-
|
|
33
31
|
```bash
|
|
34
|
-
|
|
35
|
-
uv run pytest # run all 400+ tests (~10s parallel)
|
|
32
|
+
pip install python-cc
|
|
36
33
|
```
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
--------------------
|
|
35
|
+
This gives you the `pcc` command:
|
|
40
36
|
|
|
41
37
|
```bash
|
|
42
|
-
#
|
|
43
|
-
|
|
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
|
-
|
|
46
|
-
|
|
44
|
+
Development
|
|
45
|
+
--------------------
|
|
46
|
+
|
|
47
|
+
Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
uv
|
|
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 (
|
|
76
|
-
uv run pytest tests/test_lua.py -
|
|
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
|
-
|
|
15
|
+
Install
|
|
16
16
|
--------------------
|
|
17
17
|
|
|
18
|
-
Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
|
|
19
|
-
|
|
20
18
|
```bash
|
|
21
|
-
|
|
22
|
-
uv run pytest # run all 400+ tests (~10s parallel)
|
|
19
|
+
pip install python-cc
|
|
23
20
|
```
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
--------------------
|
|
22
|
+
This gives you the `pcc` command:
|
|
27
23
|
|
|
28
24
|
```bash
|
|
29
|
-
#
|
|
30
|
-
|
|
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
|
-
|
|
33
|
-
|
|
31
|
+
Development
|
|
32
|
+
--------------------
|
|
33
|
+
|
|
34
|
+
Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
uv
|
|
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 (
|
|
63
|
-
uv run pytest tests/test_lua.py -
|
|
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
|
+
version = "0.0.4"
|
|
4
4
|
description = "Pcc is a c compiler built on python and llvm."
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
license = "
|
|
7
|
-
requires-python = ">=3.
|
|
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 = "
|
|
18
|
+
Homepage = "https://github.com/jiamo/pcc"
|
|
19
19
|
|
|
20
20
|
[build-system]
|
|
21
21
|
requires = ["hatchling"]
|
python_cc-0.0.3/.python-version
DELETED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|