This method implements the single-token deletion inline error recovery
strategy. It is called by {@link #recoverInline} to attempt to recover
from mismatched input. If this method returns null, the parser and error
handler state will not have changed. If this method returns non-null,
{@code recognizer} will <em>not</em> be in error recovery mode since the
returned token was a successful match.
<p>If the single-token deletion is successful, this method calls
{@link #reportUnwantedToken} to report the error, followed by
{@link Parser#consume} to actually "delete" the extraneous token. Then,
before returning {@link #reportMatch} is called to signal a successful
match.</p>
@param recognizer the parser instance
@return the successfully matched {@link Token} instance if single-token
deletion successfully recovers from the mismatched input, otherwise
{@code null}
This method implements the single-token deletion inline error recovery strategy. It is called by {@link #recoverInline} to attempt to recover from mismatched input. If this method returns null, the parser and error handler state will not have changed. If this method returns non-null, {@code recognizer} will <em>not</em> be in error recovery mode since the returned token was a successful match.
<p>If the single-token deletion is successful, this method calls {@link #reportUnwantedToken} to report the error, followed by {@link Parser#consume} to actually "delete" the extraneous token. Then, before returning {@link #reportMatch} is called to signal a successful match.</p>
@param recognizer the parser instance @return the successfully matched {@link Token} instance if single-token deletion successfully recovers from the mismatched input, otherwise {@code null}