module Net::IMAP::ResponseParser::ParserUtils

def assert_no_lookahead

assert_no_lookahead if config.debug?
To be used conditionally:
def assert_no_lookahead
  @token.nil? or
    parse_error("assertion failed: expected @token.nil?, actual %s: %p",
                @token.symbol, @token.value)
end