Modifying IO for non-CNF grammars