mycpp Translator

This prototype uses the MyPy frontend to translate statically-typed Python to C++. The generated code calls a small runtime which implements things like List[T], Dict[K, V], and Python's len().

mycpp/const_pass.py                             234
mycpp/control_flow_pass.py                      548
mycpp/conversion_pass.py                        391
mycpp/cppgen_pass.py                          2,858
mycpp/crash.py                                   38
mycpp/format_strings.py                         120
mycpp/mycpp_main.py                             285
mycpp/pass_state.py                             611
mycpp/translate.py                              225
mycpp/util.py                                   200
mycpp/visitor.py                                742

6,252 lines in 12 files