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

syntax analysis More...

Public Member Functions

 parser (wpi::raw_istream &s, const parser_callback_t cb=nullptr)
 a parser reading from an input adapter
 
json parse (bool strict=true)
 public parser interface More...
 
bool accept (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 ( bool  strict = true)

public accept interface

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

public parser interface

Parameters
[in]strictwhether to expect the last token to be EOF
Returns
parsed 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: