├── .gitignore ├── pyproject.toml ├── requirements.txt ├── src └── python │ ├── __init__.py │ ├── compiler.py │ ├── interpreter.py │ ├── parser.py │ ├── py.typed │ └── tokenizer.py └── tests ├── test_compiler.py ├── test_interpreter.py ├── test_parser.py └── test_tokenizer.py /.gitignore: -------------------------------------------------------------------------------- 1 | .venv 2 | .vscode 3 | build 4 | __pycache__ 5 | *.egg-info/ 6 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | mypy 2 | black 3 | pytest 4 | -------------------------------------------------------------------------------- /src/python/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/python/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/src/python/compiler.py -------------------------------------------------------------------------------- /src/python/interpreter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/src/python/interpreter.py -------------------------------------------------------------------------------- /src/python/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/src/python/parser.py -------------------------------------------------------------------------------- /src/python/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/python/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/src/python/tokenizer.py -------------------------------------------------------------------------------- /tests/test_compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/tests/test_compiler.py -------------------------------------------------------------------------------- /tests/test_interpreter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/tests/test_interpreter.py -------------------------------------------------------------------------------- /tests/test_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/tests/test_parser.py -------------------------------------------------------------------------------- /tests/test_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathspp/building-a-python-compiler-and-interpreter/HEAD/tests/test_tokenizer.py --------------------------------------------------------------------------------