Use typed arguments for parser hooks.