Source

pyfuzz / pgen-example.py

from pgen import *
import random


if __name__ == "__main__":
    pgen = ProgGenerator(pgen_opts, random.Random())

    m = pgen.generate()

    from pygen.cgen import CodeGenerator

    cgen = CodeGenerator()

    print cgen.generate(m)