blob: a0b8b63bb2573b0d3e00b723ace92ea3b7cb4736 (
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
26
|
#pragma once
#ifdef TOKEN_QUERY // Conflict with the winnt.h
#undef TOKEN_QUERY
#endif
#include <yql/essentials/parser/antlr_ast/gen/v1_antlr4/SQLv1Antlr4Parser.h>
#include <yql/essentials/parser/antlr_ast/gen/v1_antlr4/SQLv1Antlr4BaseVisitor.h>
#include <contrib/libs/antlr4_cpp_runtime/src/CommonTokenStream.h>
#include <util/generic/strbuf.h>
namespace NSQLPureAST {
using SQLv1 = NALADefaultAntlr4::SQLv1Antlr4Parser;
using NALADefaultAntlr4::SQLv1Antlr4BaseVisitor;
struct TParseTree {
TStringBuf Text;
antlr4::CommonTokenStream* Tokens;
SQLv1* Parser;
SQLv1::Sql_queryContext* SqlQuery;
};
} // namespace NSQLPureAST
|