Initial port of pgen parser out of Basil.