Homework in course "computing language" , PCFG implement