code refactor for genericparser

No match.