MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / parser

Method parser

lesson6-Segmentation/json.hpp:10174–10184  ·  view source on GitHub ↗

a parser reading from an input adapter

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected