|
OpenMoHAA 0.83.0
|
syntax analysis More...
#include <json.hpp>
Public Types | |
| enum class | parse_event_t : uint8_t { object_start , object_end , array_start , array_end , key , value } |
| using | parser_callback_t |
Public Member Functions | |
| parser (detail::input_adapter_t &&adapter, const parser_callback_t cb=nullptr, const bool allow_exceptions_=true) | |
| a parser reading from an input adapter | |
| void | parse (const bool strict, BasicJsonType &result) |
| public parser interface | |
| bool | accept (const bool strict=true) |
| public accept interface | |
| template<typename SAX> | |
| bool | sax_parse (SAX *sax, const bool strict=true) |
syntax analysis
This class implements a recursive decent parser.
| using nlohmann::detail::parser< BasicJsonType >::parser_callback_t |
|
strong |
|
inline |
public accept interface
| [in] | strict | whether to expect the last token to be EOF |
|
inline |
public parser interface
| [in] | strict | whether to expect the last token to be EOF |
| [in,out] | result | parsed JSON value |
| parse_error.101 | in case of an unexpected token |
| parse_error.102 | if to_unicode fails or surrogate error |
| parse_error.103 | if to_unicode fails |