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                        367
mycpp/cppgen_pass.py                          2,823
mycpp/crash.py                                   38
mycpp/format_strings.py                         120
mycpp/mycpp_main.py                             261
mycpp/pass_state.py                             611
mycpp/translate.py                              218
mycpp/util.py                                   200
mycpp/visitor.py                                736

6,156 lines in 12 files