a parser reading from an input adapter
| 12167 | public: |
| 12168 | /// a parser reading from an input adapter |
| 12169 | explicit parser(InputAdapterType&& adapter, |
| 12170 | const parser_callback_t<BasicJsonType> cb = nullptr, |
| 12171 | const bool allow_exceptions_ = true, |
| 12172 | const bool skip_comments = false) |
| 12173 | : callback(cb) |
| 12174 | , m_lexer(std::move(adapter), skip_comments) |
| 12175 | , allow_exceptions(allow_exceptions_) |
| 12176 | { |
| 12177 | // read first token |
| 12178 | get_token(); |
| 12179 | } |
| 12180 | |
| 12181 | /*! |
| 12182 | @brief public parser interface |
nothing calls this directly
no test coverage detected