Lines Matching refs:m_lexer

76         , m_lexer(std::move(adapter), skip_comments)
103 sdp.parse_error(m_lexer.get_position(),
104 m_lexer.get_token_string(),
105 parse_error::create(101, m_lexer.get_position(),
131 sdp.parse_error(m_lexer.get_position(),
132 m_lexer.get_token_string(),
133 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr));
169 return sax->parse_error(m_lexer.get_position(),
170 m_lexer.get_token_string(),
171 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr));
215 return sax->parse_error(m_lexer.get_position(),
216 m_lexer.get_token_string(),
217 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), nullptr));
219 if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
227 return sax->parse_error(m_lexer.get_position(),
228 m_lexer.get_token_string(),
229 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), nullptr));
266 const auto res = m_lexer.get_number_float();
270 return sax->parse_error(m_lexer.get_position(),
271 m_lexer.get_token_string(),
272 out_of_range::create(406, concat("number overflow parsing '", m_lexer.get_token_string(), '\''), nullptr));
275 if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string())))
312 if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer())))
321 if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string())))
330 if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned())))
340 return sax->parse_error(m_lexer.get_position(),
341 m_lexer.get_token_string(),
342 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::uninitialized, "value"), nullptr));
354 return sax->parse_error(m_lexer.get_position(),
355 m_lexer.get_token_string(),
356 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::literal_or_value, "value"), nullptr));
400 return sax->parse_error(m_lexer.get_position(),
401 m_lexer.get_token_string(),
402 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_array, "array"), nullptr));
413 return sax->parse_error(m_lexer.get_position(),
414 m_lexer.get_token_string(),
415 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::value_string, "object key"), nullptr));
418 if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
426 return sax->parse_error(m_lexer.get_position(),
427 m_lexer.get_token_string(),
428 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::name_separator, "object separator"), nullptr));
454 return sax->parse_error(m_lexer.get_position(),
455 m_lexer.get_token_string(),
456 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_object, "object"), nullptr));
463 return last_token = m_lexer.scan();
479 error_msg += concat(m_lexer.get_error_message(), "; last read: '",
480 m_lexer.get_token_string(), '\'');
501 lexer_t m_lexer;