Implement parser wrapper with callback as the last argument