align parser methods with updated API, incorporate read_cfg into ContextFreeGrammar.read, and same for read_pcfg and read_fcfg