A Parsing framework for Parsing Expression Grammar