Writing a simple Python to C compiler: hello, fibonacci
notes.eatonphil.com
notes.eatonphil.com
I have an old, abandoned project that translates Python to C++ "from scratch", with no runtime dependencies beyond the STL[0]. It's very incomplete, and probably has plenty of bugs, but might be interesting for anybody looking for something more self-contained/embeddable. It has its own implementations of lists, dicts, etc., and a basic garbage collector.