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                             290
mycpp/control_flow_pass.py                      555
mycpp/conversion_pass.py                        420
mycpp/cppgen_pass.py                          2,891
mycpp/crash.py                                   38
mycpp/format_strings.py                         120
mycpp/mycpp_main.py                             291
mycpp/pass_state.py                             610
mycpp/translate.py                              234
mycpp/util.py                                   200
mycpp/visitor.py                                757

6,406 lines in 12 files