summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/ide/completion/antlr4/defs.h
blob: adacf9ef5a2bb50cd609b426e967aab64a362eff (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