diff --git a/README.md b/README.md index ed9b64d84..698f69fc2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ which aims to provide many conveniences over raw assembly code (even when using - constant folding in expressions (compile-time evaluation) - automatic type conversions - floating point operations -- optional automatic preserving and restoring CPU registers state, when calling routines that otherwise would clobber these - abstracting away low level aspects such as ZeroPage handling, program startup, explicit memory addresses - breakpoints, that let the Vice emulator drop into the monitor if execution hits them - source code labels automatically loaded in Vice emulator so it can show them in disassembly @@ -37,5 +36,3 @@ to provide a small precompiled executable. Prog8 is mainly targeted at the Commodore-64 machine, but should be mostly system independent. - -See [the reference document](reference.md) for detailed information. diff --git a/python-prototype/README.txt b/python-prototype/README.txt new file mode 100644 index 000000000..1dd39a954 --- /dev/null +++ b/python-prototype/README.txt @@ -0,0 +1,4 @@ +This is the old Python version of an early prototype of the language and compiler. +It was able to produce actual running c64 binary programs, but only +from a very limited language subset. + diff --git a/python/il65/__init__.py b/python-prototype/il65/__init__.py similarity index 100% rename from python/il65/__init__.py rename to python-prototype/il65/__init__.py diff --git a/python/il65/__main__.py b/python-prototype/il65/__main__.py similarity index 100% rename from python/il65/__main__.py rename to python-prototype/il65/__main__.py diff --git a/python/il65/codegen/__init__.py b/python-prototype/il65/codegen/__init__.py similarity index 100% rename from python/il65/codegen/__init__.py rename to python-prototype/il65/codegen/__init__.py diff --git a/python/il65/codegen/mos6502/__init__.py b/python-prototype/il65/codegen/mos6502/__init__.py similarity index 100% rename from python/il65/codegen/mos6502/__init__.py rename to python-prototype/il65/codegen/mos6502/__init__.py diff --git a/python/il65/codegen/mos6502/assignment.py b/python-prototype/il65/codegen/mos6502/assignment.py similarity index 100% rename from python/il65/codegen/mos6502/assignment.py rename to python-prototype/il65/codegen/mos6502/assignment.py diff --git a/python/il65/codegen/mos6502/calls.py b/python-prototype/il65/codegen/mos6502/calls.py similarity index 100% rename from python/il65/codegen/mos6502/calls.py rename to python-prototype/il65/codegen/mos6502/calls.py diff --git a/python/il65/codegen/mos6502/generate.py b/python-prototype/il65/codegen/mos6502/generate.py similarity index 100% rename from python/il65/codegen/mos6502/generate.py rename to python-prototype/il65/codegen/mos6502/generate.py diff --git a/python/il65/codegen/mos6502/incrdecr.py b/python-prototype/il65/codegen/mos6502/incrdecr.py similarity index 100% rename from python/il65/codegen/mos6502/incrdecr.py rename to python-prototype/il65/codegen/mos6502/incrdecr.py diff --git a/python/il65/codegen/mos6502/variables.py b/python-prototype/il65/codegen/mos6502/variables.py similarity index 100% rename from python/il65/codegen/mos6502/variables.py rename to python-prototype/il65/codegen/mos6502/variables.py diff --git a/python/il65/codegen/shared.py b/python-prototype/il65/codegen/shared.py similarity index 100% rename from python/il65/codegen/shared.py rename to python-prototype/il65/codegen/shared.py diff --git a/python/il65/codegen/tinyvm/__init__.py b/python-prototype/il65/codegen/tinyvm/__init__.py similarity index 100% rename from python/il65/codegen/tinyvm/__init__.py rename to python-prototype/il65/codegen/tinyvm/__init__.py diff --git a/python/il65/codegen/tinyvm/generate.py b/python-prototype/il65/codegen/tinyvm/generate.py similarity index 100% rename from python/il65/codegen/tinyvm/generate.py rename to python-prototype/il65/codegen/tinyvm/generate.py diff --git a/python/il65/compile.py b/python-prototype/il65/compile.py similarity index 100% rename from python/il65/compile.py rename to python-prototype/il65/compile.py diff --git a/python/il65/constantfold.py b/python-prototype/il65/constantfold.py similarity index 100% rename from python/il65/constantfold.py rename to python-prototype/il65/constantfold.py diff --git a/python/il65/datatypes.py b/python-prototype/il65/datatypes.py similarity index 100% rename from python/il65/datatypes.py rename to python-prototype/il65/datatypes.py diff --git a/python/il65/main.py b/python-prototype/il65/main.py similarity index 100% rename from python/il65/main.py rename to python-prototype/il65/main.py diff --git a/python/il65/oldstuff/codegen.py b/python-prototype/il65/oldstuff/codegen.py similarity index 100% rename from python/il65/oldstuff/codegen.py rename to python-prototype/il65/oldstuff/codegen.py diff --git a/python/il65/optimize.py b/python-prototype/il65/optimize.py similarity index 100% rename from python/il65/optimize.py rename to python-prototype/il65/optimize.py diff --git a/python/il65/plylex.py b/python-prototype/il65/plylex.py similarity index 100% rename from python/il65/plylex.py rename to python-prototype/il65/plylex.py diff --git a/python/il65/plyparse.py b/python-prototype/il65/plyparse.py similarity index 100% rename from python/il65/plyparse.py rename to python-prototype/il65/plyparse.py diff --git a/python/mypy.ini b/python-prototype/mypy.ini similarity index 100% rename from python/mypy.ini rename to python-prototype/mypy.ini diff --git a/python/python.iml b/python-prototype/python.iml similarity index 100% rename from python/python.iml rename to python-prototype/python.iml diff --git a/python/requirements.txt b/python-prototype/requirements.txt similarity index 100% rename from python/requirements.txt rename to python-prototype/requirements.txt diff --git a/python/run_profile.py b/python-prototype/run_profile.py similarity index 100% rename from python/run_profile.py rename to python-prototype/run_profile.py diff --git a/python/setup.cfg b/python-prototype/setup.cfg similarity index 100% rename from python/setup.cfg rename to python-prototype/setup.cfg diff --git a/python/tests/__init__.py b/python-prototype/tests/__init__.py similarity index 100% rename from python/tests/__init__.py rename to python-prototype/tests/__init__.py diff --git a/python/tests/test_codegen_mos6502.py b/python-prototype/tests/test_codegen_mos6502.py similarity index 100% rename from python/tests/test_codegen_mos6502.py rename to python-prototype/tests/test_codegen_mos6502.py diff --git a/python/tests/test_core.py b/python-prototype/tests/test_core.py similarity index 100% rename from python/tests/test_core.py rename to python-prototype/tests/test_core.py diff --git a/python/tests/test_optimizer.py b/python-prototype/tests/test_optimizer.py similarity index 100% rename from python/tests/test_optimizer.py rename to python-prototype/tests/test_optimizer.py diff --git a/python/tests/test_parser.py b/python-prototype/tests/test_parser.py similarity index 100% rename from python/tests/test_parser.py rename to python-prototype/tests/test_parser.py diff --git a/python/tests/test_vardef.py b/python-prototype/tests/test_vardef.py similarity index 100% rename from python/tests/test_vardef.py rename to python-prototype/tests/test_vardef.py diff --git a/python/tests/test_vmcore.py b/python-prototype/tests/test_vmcore.py similarity index 100% rename from python/tests/test_vmcore.py rename to python-prototype/tests/test_vmcore.py diff --git a/python/tests/test_zp.py b/python-prototype/tests/test_zp.py similarity index 100% rename from python/tests/test_zp.py rename to python-prototype/tests/test_zp.py diff --git a/python/testsource/calls.ill b/python-prototype/testsource/calls.ill similarity index 100% rename from python/testsource/calls.ill rename to python-prototype/testsource/calls.ill diff --git a/python/testsource/conditionals.ill b/python-prototype/testsource/conditionals.ill similarity index 100% rename from python/testsource/conditionals.ill rename to python-prototype/testsource/conditionals.ill diff --git a/python/testsource/dtypes.ill b/python-prototype/testsource/dtypes.ill similarity index 100% rename from python/testsource/dtypes.ill rename to python-prototype/testsource/dtypes.ill diff --git a/python/testsource/floats.ill b/python-prototype/testsource/floats.ill similarity index 100% rename from python/testsource/floats.ill rename to python-prototype/testsource/floats.ill diff --git a/python/testsource/included.binary b/python-prototype/testsource/included.binary similarity index 100% rename from python/testsource/included.binary rename to python-prototype/testsource/included.binary diff --git a/python/testsource/included.source b/python-prototype/testsource/included.source similarity index 100% rename from python/testsource/included.source rename to python-prototype/testsource/included.source diff --git a/python/testsource/input.ill b/python-prototype/testsource/input.ill similarity index 100% rename from python/testsource/input.ill rename to python-prototype/testsource/input.ill diff --git a/python/testsource/large.ill b/python-prototype/testsource/large.ill similarity index 100% rename from python/testsource/large.ill rename to python-prototype/testsource/large.ill diff --git a/python/testsource/numbergame.ill b/python-prototype/testsource/numbergame.ill similarity index 100% rename from python/testsource/numbergame.ill rename to python-prototype/testsource/numbergame.ill diff --git a/python/testsource/source1.ill b/python-prototype/testsource/source1.ill similarity index 100% rename from python/testsource/source1.ill rename to python-prototype/testsource/source1.ill diff --git a/python/testsource/source2.ill b/python-prototype/testsource/source2.ill similarity index 100% rename from python/testsource/source2.ill rename to python-prototype/testsource/source2.ill diff --git a/python/testsource/source3.ill b/python-prototype/testsource/source3.ill similarity index 100% rename from python/testsource/source3.ill rename to python-prototype/testsource/source3.ill diff --git a/python/testsource/source4.ill b/python-prototype/testsource/source4.ill similarity index 100% rename from python/testsource/source4.ill rename to python-prototype/testsource/source4.ill diff --git a/python/testsource/todo.ill b/python-prototype/testsource/todo.ill similarity index 100% rename from python/testsource/todo.ill rename to python-prototype/testsource/todo.ill diff --git a/python/testsource/todo2.ill b/python-prototype/testsource/todo2.ill similarity index 100% rename from python/testsource/todo2.ill rename to python-prototype/testsource/todo2.ill diff --git a/python/tinyvm/__init__.py b/python-prototype/tinyvm/__init__.py similarity index 100% rename from python/tinyvm/__init__.py rename to python-prototype/tinyvm/__init__.py diff --git a/python/tinyvm/core.py b/python-prototype/tinyvm/core.py similarity index 100% rename from python/tinyvm/core.py rename to python-prototype/tinyvm/core.py diff --git a/python/tinyvm/examples/printiovm.txt b/python-prototype/tinyvm/examples/printiovm.txt similarity index 100% rename from python/tinyvm/examples/printiovm.txt rename to python-prototype/tinyvm/examples/printiovm.txt diff --git a/python/tinyvm/examples/testvm-timer.txt b/python-prototype/tinyvm/examples/testvm-timer.txt similarity index 100% rename from python/tinyvm/examples/testvm-timer.txt rename to python-prototype/tinyvm/examples/testvm-timer.txt diff --git a/python/tinyvm/examples/testvm.txt b/python-prototype/tinyvm/examples/testvm.txt similarity index 100% rename from python/tinyvm/examples/testvm.txt rename to python-prototype/tinyvm/examples/testvm.txt diff --git a/python/tinyvm/main.py b/python-prototype/tinyvm/main.py similarity index 100% rename from python/tinyvm/main.py rename to python-prototype/tinyvm/main.py diff --git a/python/tinyvm/parse.py b/python-prototype/tinyvm/parse.py similarity index 100% rename from python/tinyvm/parse.py rename to python-prototype/tinyvm/parse.py diff --git a/python/tinyvm/program.py b/python-prototype/tinyvm/program.py similarity index 100% rename from python/tinyvm/program.py rename to python-prototype/tinyvm/program.py diff --git a/python/tinyvm/vm.py b/python-prototype/tinyvm/vm.py similarity index 100% rename from python/tinyvm/vm.py rename to python-prototype/tinyvm/vm.py