├── .github └── workflows │ └── main.yaml ├── .gitignore ├── CHANGES.txt ├── HACKING.txt ├── LICENSE.txt ├── Makefile ├── README.rst ├── README.txt.old ├── ROADMAP.txt ├── cpython └── cpython.c ├── doc └── A Brief description of re module of tinypy.tex ├── examples ├── asteroid.py ├── julia.py └── vines.py ├── java ├── Makefile ├── TinyPy.java ├── libtinypy.c └── test.py ├── modules ├── dl │ ├── init.c │ ├── libffi-3.2.1.tar.gz │ ├── repl.py │ └── tests.py ├── jni │ └── init.c ├── math │ ├── init.c │ ├── math.c │ └── tests.py ├── pygame │ └── init.c ├── random │ ├── init.c │ ├── random.c │ └── tests.py └── re │ ├── init.c │ ├── regexpr.c │ ├── regexpr.h │ ├── tests.py │ └── testsuite.py ├── run-tests.sh ├── setup.py ├── tests ├── test_attr_magics.py ├── test_dict.py ├── test_func.py ├── test_globals.py ├── test_list.py ├── test_methods.py ├── test_number.py ├── test_object.py ├── test_str.py ├── test_sys.py └── test_testing.py ├── tinypy ├── __init__.py ├── compiler.c ├── compiler │ ├── __init__.py │ ├── __main__.py │ ├── asm.py │ ├── boot.py │ ├── disasm.py │ ├── encode.py │ ├── opcodes.py │ ├── parse.py │ ├── py2bc.py │ └── tokenize.py ├── dummy-compiler.c ├── interp │ └── sandbox.c ├── printf │ ├── Makefile │ ├── README.md │ ├── mini-printf.c │ ├── mini-printf.h │ ├── test1.c │ ├── test1.gold │ └── test1.out ├── repl.c ├── runtime.c ├── runtime │ ├── testing.py │ ├── tests.py │ └── types.py ├── tp.c ├── tp.h ├── tp_data.c ├── tp_dict.c ├── tp_echo.c ├── tp_frame.c ├── tp_func.c ├── tp_gc.c ├── tp_hash.c ├── tp_import.c ├── tp_internal.h ├── tp_interp.c ├── tp_list.c ├── tp_meta.c ├── tp_number.c ├── tp_number.h ├── tp_ops.c ├── tp_ops.h ├── tp_param.c ├── tp_repr.c ├── tp_string.c ├── tp_vm.c ├── tpd_dict.c ├── tpd_list.c ├── tpmain.c ├── tpy_builtins.c ├── tpy_dict.c ├── tpy_list.c ├── tpy_string.c └── vmmain.c └── tpc /.github/workflows/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/.github/workflows/main.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGES.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/CHANGES.txt -------------------------------------------------------------------------------- /HACKING.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/HACKING.txt -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/Makefile -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/README.rst -------------------------------------------------------------------------------- /README.txt.old: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/README.txt.old -------------------------------------------------------------------------------- /ROADMAP.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/ROADMAP.txt -------------------------------------------------------------------------------- /cpython/cpython.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/cpython/cpython.c -------------------------------------------------------------------------------- /doc/A Brief description of re module of tinypy.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/doc/A Brief description of re module of tinypy.tex -------------------------------------------------------------------------------- /examples/asteroid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/examples/asteroid.py -------------------------------------------------------------------------------- /examples/julia.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/examples/julia.py -------------------------------------------------------------------------------- /examples/vines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/examples/vines.py -------------------------------------------------------------------------------- /java/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/java/Makefile -------------------------------------------------------------------------------- /java/TinyPy.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/java/TinyPy.java -------------------------------------------------------------------------------- /java/libtinypy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/java/libtinypy.c -------------------------------------------------------------------------------- /java/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/java/test.py -------------------------------------------------------------------------------- /modules/dl/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/dl/init.c -------------------------------------------------------------------------------- /modules/dl/libffi-3.2.1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/dl/libffi-3.2.1.tar.gz -------------------------------------------------------------------------------- /modules/dl/repl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/dl/repl.py -------------------------------------------------------------------------------- /modules/dl/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/dl/tests.py -------------------------------------------------------------------------------- /modules/jni/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/jni/init.c -------------------------------------------------------------------------------- /modules/math/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/math/init.c -------------------------------------------------------------------------------- /modules/math/math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/math/math.c -------------------------------------------------------------------------------- /modules/math/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/math/tests.py -------------------------------------------------------------------------------- /modules/pygame/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/pygame/init.c -------------------------------------------------------------------------------- /modules/random/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/random/init.c -------------------------------------------------------------------------------- /modules/random/random.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/random/random.c -------------------------------------------------------------------------------- /modules/random/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/random/tests.py -------------------------------------------------------------------------------- /modules/re/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/re/init.c -------------------------------------------------------------------------------- /modules/re/regexpr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/re/regexpr.c -------------------------------------------------------------------------------- /modules/re/regexpr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/re/regexpr.h -------------------------------------------------------------------------------- /modules/re/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/re/tests.py -------------------------------------------------------------------------------- /modules/re/testsuite.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/modules/re/testsuite.py -------------------------------------------------------------------------------- /run-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/run-tests.sh -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/setup.py -------------------------------------------------------------------------------- /tests/test_attr_magics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_attr_magics.py -------------------------------------------------------------------------------- /tests/test_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_dict.py -------------------------------------------------------------------------------- /tests/test_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_func.py -------------------------------------------------------------------------------- /tests/test_globals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_globals.py -------------------------------------------------------------------------------- /tests/test_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_list.py -------------------------------------------------------------------------------- /tests/test_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_methods.py -------------------------------------------------------------------------------- /tests/test_number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_number.py -------------------------------------------------------------------------------- /tests/test_object.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_object.py -------------------------------------------------------------------------------- /tests/test_str.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_str.py -------------------------------------------------------------------------------- /tests/test_sys.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_sys.py -------------------------------------------------------------------------------- /tests/test_testing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tests/test_testing.py -------------------------------------------------------------------------------- /tinypy/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tinypy/compiler.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler.c -------------------------------------------------------------------------------- /tinypy/compiler/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tinypy/compiler/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/__main__.py -------------------------------------------------------------------------------- /tinypy/compiler/asm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/asm.py -------------------------------------------------------------------------------- /tinypy/compiler/boot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/boot.py -------------------------------------------------------------------------------- /tinypy/compiler/disasm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/disasm.py -------------------------------------------------------------------------------- /tinypy/compiler/encode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/encode.py -------------------------------------------------------------------------------- /tinypy/compiler/opcodes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/opcodes.py -------------------------------------------------------------------------------- /tinypy/compiler/parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/parse.py -------------------------------------------------------------------------------- /tinypy/compiler/py2bc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/py2bc.py -------------------------------------------------------------------------------- /tinypy/compiler/tokenize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/compiler/tokenize.py -------------------------------------------------------------------------------- /tinypy/dummy-compiler.c: -------------------------------------------------------------------------------- 1 | #include "tp.h" 2 | 3 | void tp_module_compiler_init(TP) { } 4 | -------------------------------------------------------------------------------- /tinypy/interp/sandbox.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/interp/sandbox.c -------------------------------------------------------------------------------- /tinypy/printf/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/printf/Makefile -------------------------------------------------------------------------------- /tinypy/printf/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/printf/README.md -------------------------------------------------------------------------------- /tinypy/printf/mini-printf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/printf/mini-printf.c -------------------------------------------------------------------------------- /tinypy/printf/mini-printf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/printf/mini-printf.h -------------------------------------------------------------------------------- /tinypy/printf/test1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/printf/test1.c -------------------------------------------------------------------------------- /tinypy/printf/test1.gold: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/printf/test1.gold -------------------------------------------------------------------------------- /tinypy/printf/test1.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/printf/test1.out -------------------------------------------------------------------------------- /tinypy/repl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/repl.c -------------------------------------------------------------------------------- /tinypy/runtime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/runtime.c -------------------------------------------------------------------------------- /tinypy/runtime/testing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/runtime/testing.py -------------------------------------------------------------------------------- /tinypy/runtime/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/runtime/tests.py -------------------------------------------------------------------------------- /tinypy/runtime/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/runtime/types.py -------------------------------------------------------------------------------- /tinypy/tp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp.c -------------------------------------------------------------------------------- /tinypy/tp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp.h -------------------------------------------------------------------------------- /tinypy/tp_data.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_data.c -------------------------------------------------------------------------------- /tinypy/tp_dict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_dict.c -------------------------------------------------------------------------------- /tinypy/tp_echo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_echo.c -------------------------------------------------------------------------------- /tinypy/tp_frame.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_frame.c -------------------------------------------------------------------------------- /tinypy/tp_func.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_func.c -------------------------------------------------------------------------------- /tinypy/tp_gc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_gc.c -------------------------------------------------------------------------------- /tinypy/tp_hash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_hash.c -------------------------------------------------------------------------------- /tinypy/tp_import.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_import.c -------------------------------------------------------------------------------- /tinypy/tp_internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_internal.h -------------------------------------------------------------------------------- /tinypy/tp_interp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_interp.c -------------------------------------------------------------------------------- /tinypy/tp_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_list.c -------------------------------------------------------------------------------- /tinypy/tp_meta.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_meta.c -------------------------------------------------------------------------------- /tinypy/tp_number.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_number.c -------------------------------------------------------------------------------- /tinypy/tp_number.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_number.h -------------------------------------------------------------------------------- /tinypy/tp_ops.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_ops.c -------------------------------------------------------------------------------- /tinypy/tp_ops.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_ops.h -------------------------------------------------------------------------------- /tinypy/tp_param.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_param.c -------------------------------------------------------------------------------- /tinypy/tp_repr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_repr.c -------------------------------------------------------------------------------- /tinypy/tp_string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_string.c -------------------------------------------------------------------------------- /tinypy/tp_vm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tp_vm.c -------------------------------------------------------------------------------- /tinypy/tpd_dict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tpd_dict.c -------------------------------------------------------------------------------- /tinypy/tpd_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tpd_list.c -------------------------------------------------------------------------------- /tinypy/tpmain.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tpmain.c -------------------------------------------------------------------------------- /tinypy/tpy_builtins.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tpy_builtins.c -------------------------------------------------------------------------------- /tinypy/tpy_dict.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tinypy/tpy_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tpy_list.c -------------------------------------------------------------------------------- /tinypy/tpy_string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/tpy_string.c -------------------------------------------------------------------------------- /tinypy/vmmain.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tinypy/vmmain.c -------------------------------------------------------------------------------- /tpc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainwoodman/tinypy/HEAD/tpc --------------------------------------------------------------------------------