# -*- coding:utf-8 -*- from srcgen.python import PythonModule m = PythonModule() def fizzbuzz(i): r = [] if i % 3 == 0: r.append("fizz") if i % 5 == 0: r.append("buzz") return "".join(r) if r else i def genfizzbuzz(m, beg, end): def genfn(): with m.def_("fizzbuzz", "n"): with m.if_("n == {}".format(beg)): m.return_(repr(fizzbuzz(beg))) for i in range(beg + 1, end + 1): with m.elif_("n == {}".forma