Implement PCFG parsing.