syntax analysis More...
#include <json.hpp>
Public Member Functions | |
bool | accept (const bool strict=true) |
public accept interface More... | |
void | parse (const bool strict, BasicJsonType &result) |
public parser interface More... | |
parser (InputAdapterType &&adapter, const parser_callback_t< BasicJsonType > cb=nullptr, const bool allow_exceptions_=true, const bool skip_comments=false) | |
a parser reading from an input adapter More... | |
template<typename SAX > | |
bool | sax_parse (SAX *sax, const bool strict=true) |
syntax analysis
This class implements a recursive descent parser.
|
explicit |
a parser reading from an input adapter
bool nlohmann::detail::parser< BasicJsonType, InputAdapterType >::accept | ( | const bool | strict = true | ) |
public accept interface
[in] | strict | whether to expect the last token to be EOF |
References nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse(), and nlohmann::detail::strict.
Referenced by femexamples.examplesgui.FemExamples::clicked(), femexamples.examplesgui.FemExamples::double_clicked(), ArchComponent.ComponentTaskPanel::editObject(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
void nlohmann::detail::parser< BasicJsonType, InputAdapterType >::parse | ( | const bool | strict, |
BasicJsonType & | result | ||
) |
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 |
References nlohmann::detail::parse_error::create(), nlohmann::detail::discarded, nlohmann::detail::json_sax_dom_parser< BasicJsonType >::is_errored(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::is_errored(), nlohmann::detail::json_sax_dom_parser< BasicJsonType >::parse_error(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::parse_error(), and nlohmann::detail::strict.
Referenced by BOPTools.GeneralFuseResult.GeneralFuseResult::explodeCompounds(), and BOPTools.GeneralFuseResult.GeneralFuseResult::splitAggregates().
bool nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse | ( | SAX * | sax, |
const bool | strict = true |
||
) |
References nlohmann::detail::parse_error::create(), and nlohmann::detail::strict.
Referenced by nlohmann::detail::parser< BasicJsonType, InputAdapterType >::accept().