a parser reading from an input adapter
| 12268 | public: |
| 12269 | /// a parser reading from an input adapter |
| 12270 | explicit parser(InputAdapterType&& adapter, |
| 12271 | const parser_callback_t<BasicJsonType> cb = nullptr, |
| 12272 | const bool allow_exceptions_ = true, |
| 12273 | const bool skip_comments = false) |
| 12274 | : callback(cb) |
| 12275 | , m_lexer(std::move(adapter), skip_comments) |
| 12276 | , allow_exceptions(allow_exceptions_) |
| 12277 | { |
| 12278 | // read first token |
| 12279 | get_token(); |
| 12280 | } |
| 12281 | |
| 12282 | /*! |
| 12283 | @brief public parser interface |
nothing calls this directly
no outgoing calls
no test coverage detected