aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/antlr4/defs.h
blob: 7f2991a8a74fe8888b781b43a8224661f8c04b06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <contrib/libs/antlr4_cpp_runtime/src/Token.h>

#include <cstddef>
#include <vector>

namespace NSQLComplete {

    using TTokenId = size_t;
    using TRuleId = size_t;

    constexpr TTokenId TOKEN_EOF = antlr4::Token::EOF;

    // std::vector is used to prevent copying a C3 output
    using TParserCallStack = std::vector<TRuleId>;

} // namespace NSQLComplete