WPILibC++  unspecified
wpi::json::parser Class Reference

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...
 

Detailed Description

syntax analysis

This class implements a recursive decent parser.

Member Function Documentation

bool wpi::json::parser::accept ( const bool  strict = true)
inline

public accept interface

Parameters
[in]strictwhether to expect the last token to be EOF
Returns
whether the input is a proper JSON text
void wpi::json::parser::parse ( const bool  strict,
json result 
)

public parser interface

Parameters
[in]strictwhether to expect the last token to be EOF
[in,out]resultparsed JSON value
Exceptions
parse_error.101in case of an unexpected token
parse_error.102if to_unicode fails or surrogate error
parse_error.103if to_unicode fails

The documentation for this class was generated from the following file: