ensure the pre_parse() and post_parse() hooks have `this` referencing the parser instance.