add generator
peg: add generator functionality