Writing a simple Python compiler: 1. hello, fibonacci

from blog Notes on software development, | ↗ original
In this post we'll write a Python to C compiler in Python. This is especially easy to do since Python has a builtin parser library and because a number of CPython internals are exposed for extension writers. By the end of this post, in a few hundred lines of Python, we'll be able to compile and run the following program: $ cat...