summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/ide/pure_ast/parser.h
blob: 274a1b19e504796dd5eb0ddf0f0a4beb2040ca88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "parse_tree.h"

#include <util/generic/ptr.h>

namespace NSQLPureAST {

class IParser {
public:
    using TPtr = THolder<IParser>;

    virtual ~IParser() = default;
    virtual TParseTree Parse(TStringBuf text Y_LIFETIME_BOUND) = 0;
};

IParser::TPtr MakeParser(bool isAnsiLexer);

} // namespace NSQLPureAST