aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/parser/pg_wrapper/interface/raw_parser.h
blob: b0b47177067fde75f9aacde45d80b6a376864dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

extern "C" {
struct List;
struct Node;
}

#include <yql/essentials/public/issue/yql_issue.h>

namespace NYql {

class IPGParseEvents {
public:
    virtual ~IPGParseEvents() = default;
    virtual void OnResult(const List* raw) = 0;
    virtual void OnError(const TIssue& issue) = 0;
};

TString PrintPGTree(const List* raw);

TString GetCommandName(Node* node);

void PGParse(const TString& input, IPGParseEvents& events);

}