MCPcopy Create free account
hub / github.com/apache/kvrocks / ParseToTree

Function ParseToTree

src/search/sql_transformer.h:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template <typename Input>
49StatusOr<std::unique_ptr<parse_tree::node>> ParseToTree(Input&& in) {
50 if (auto root = parse_tree::parse<seq<SearchStmt, eof>, TreeSelector>(std::forward<Input>(in))) {
51 return root;
52 } else {
53 // TODO: improve parse error message, with source location
54 return {Status::NotOK, "invalid syntax"};
55 }
56}
57
58struct Transformer : ir::TreeTransformer {
59 explicit Transformer(const ParamMap& param_map) : TreeTransformer(param_map) {}

Callers 1

ParseToIRFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected