Add ability to construct parser from runtime class