Add a `maxparse` option for debugging

when infinite loops happen.