aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/lexer/regex/regex.h
blob: 1e9d92b653506f1fc79477c7dfcde4a3274664f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <yql/essentials/sql/v1/reflect/sql_reflect.h>

#include <util/generic/hash.h>

namespace NSQLTranslationV1 {

    // Makes regexes only for tokens from OtherNames,
    // as keywords and punctuation are trivially matched.
    TVector<std::tuple<TString, TString>> MakeRegexByOtherName(
        const NSQLReflect::TLexerGrammar& grammar, bool ansi);

} // namespace NSQLTranslationV1