I'd remove the whole object. It introduces global mutable state, and this method is not thread-safe. Could we have this flag in the parser class instead?