aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/lexer/regex/regex.h
blob: 9e29c3df25b245f22b03a1f7fc567eda5f5a9170 (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.
    THashMap<TString, TString> MakeRegexByOtherNameMap(
        const NSQLReflect::TLexerGrammar& grammar, bool ansi);

} // namespace NSQLTranslationV1