WPILibC++
unspecified
|
syntax analysis More...
Public Member Functions | |
parser (raw_istream &s, const parser_callback_t cb=nullptr, const bool allow_exceptions_=true) | |
a parser reading from an input adapter | |
void | parse (const bool strict, json &result) |
public parser interface More... | |
bool | accept (const bool strict=true) |
public accept interface More... | |
syntax analysis
This class implements a recursive decent parser.
|
inline |
public accept interface
[in] | strict | whether to expect the last token to be EOF |
void wpi::json::parser::parse | ( | const bool | strict, |
json & | 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 |