raw_parser.h 440 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. extern "C" {
  3. struct List;
  4. struct Node;
  5. }
  6. #include <yql/essentials/public/issue/yql_issue.h>
  7. namespace NYql {
  8. class IPGParseEvents {
  9. public:
  10. virtual ~IPGParseEvents() = default;
  11. virtual void OnResult(const List* raw) = 0;
  12. virtual void OnError(const TIssue& issue) = 0;
  13. };
  14. TString PrintPGTree(const List* raw);
  15. TString GetCommandName(Node* node);
  16. void PGParse(const TString& input, IPGParseEvents& events);
  17. }