Seperated pegr from create
split generator and parser,
parser now creates new generator when needed