|
OpenMoHAA ..
|
lexical analysis More...
#include <json.hpp>
Public Types | |
| enum class | token_type { uninitialized , literal_true , literal_false , literal_null , value_string , value_unsigned , value_integer , value_float , begin_array , begin_object , end_array , end_object , name_separator , value_separator , parse_error , end_of_input , literal_or_value } |
Public Member Functions | |
| *return name of values of type | token_type (only used for errors) JSON_HEDLEY_RETURNS_NON_NULL JSON_HEDLEY_CONST static const char *token_type_name(const token_type t) noexcept |
| lexer (detail::input_adapter_t &&adapter) | |
| lexer (const lexer &)=delete | |
| lexer (lexer &&)=delete | |
| lexer & | operator= (lexer &)=delete |
| lexer & | operator= (lexer &&)=delete |
| ***return integer value constexpr number_integer_t | get_number_integer () const noexcept |
| *return unsigned integer value constexpr number_unsigned_t | get_number_unsigned () const noexcept |
| *return floating point value constexpr number_float_t | get_number_float () const noexcept |
| *return current string | value (implicitly resets the token;useful only once) string_t &get_string() |
| ***return position of last read token constexpr position_t | get_position () const noexcept |
| *return the last read | token (for errors only). Will never contain EOF *(an arbitrary value that is not a valid char value |
| *return the last read because *may legitimately occur May contain which should be escaped std::string | get_token_string () const |
| *return syntax error message JSON_HEDLEY_RETURNS_NON_NULL constexpr const char * | get_error_message () const noexcept |
| **bool | skip_bom () |
| skip the UTF-8 byte order mark | |
| token_type | scan () |
Public Attributes | |
| *return the last read | often |
| *return the last read because *may legitimately occur May contain | NUL |
lexical analysis
This class organizes the lexical analysis during JSON deserialization.
|
strong |
|
inline |
skip the UTF-8 byte order mark