a parser reading from an input adapter
| 10172 | public: |
| 10173 | /// a parser reading from an input adapter |
| 10174 | explicit parser(InputAdapterType&& adapter, |
| 10175 | const parser_callback_t<BasicJsonType> cb = nullptr, |
| 10176 | const bool allow_exceptions_ = true, |
| 10177 | const bool skip_comments = false) |
| 10178 | : callback(cb) |
| 10179 | , m_lexer(std::move(adapter), skip_comments) |
| 10180 | , allow_exceptions(allow_exceptions_) |
| 10181 | { |
| 10182 | // read first token |
| 10183 | get_token(); |
| 10184 | } |
| 10185 | |
| 10186 | /*! |
| 10187 | @brief public parser interface |
nothing calls this directly
no outgoing calls
no test coverage detected