MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / parser

Method parser

examples/server/json.hpp:12169–12179  ·  view source on GitHub ↗

a parser reading from an input adapter

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_tokenFunction · 0.85

Tested by

no test coverage detected