aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/syntax/grammar.h
diff options
context:
space:
mode:
authorMaxim Yurchuk <maxim-yurchuk@ydb.tech>2025-05-30 21:14:52 +0000
committerGitHub <noreply@github.com>2025-05-30 21:14:52 +0000
commitc75cf6fa89ba44e2fa74a15232593b2e8423ed3f (patch)
treea7f428153ad7b3109180af04a9c84af2b0ab2a16 /yql/essentials/sql/v1/complete/syntax/grammar.h
parentb21606bc4b50665ea3fdca703e13a4b4d7a44284 (diff)
parent8728b9da66674488bde07a092040097e46de9366 (diff)
downloadydb-c75cf6fa89ba44e2fa74a15232593b2e8423ed3f.tar.gz
Library import 250529-1108 (#19003)
Diffstat (limited to 'yql/essentials/sql/v1/complete/syntax/grammar.h')
-rw-r--r--yql/essentials/sql/v1/complete/syntax/grammar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/complete/syntax/grammar.h b/yql/essentials/sql/v1/complete/syntax/grammar.h
index b128129e95f..4a259493dbc 100644
--- a/yql/essentials/sql/v1/complete/syntax/grammar.h
+++ b/yql/essentials/sql/v1/complete/syntax/grammar.h
@@ -6,6 +6,7 @@
#include <unordered_set>
#include <string>
+#include <string_view>
#ifdef TOKEN_QUERY // Conflict with the winnt.h
#undef TOKEN_QUERY
@@ -21,6 +22,8 @@ namespace NSQLComplete {
public:
virtual const antlr4::dfa::Vocabulary& GetVocabulary() const = 0;
virtual const std::string& SymbolizedRule(TRuleId rule) const = 0;
+ virtual TRuleId GetRuleId(std::string_view symbolized) const = 0;
+ virtual const std::vector<std::string>& GetAllRules() const = 0;
virtual const std::unordered_set<TTokenId>& GetAllTokens() const = 0;
virtual const std::unordered_set<TTokenId>& GetKeywordTokens() const = 0;
virtual const std::unordered_set<TTokenId>& GetPunctuationTokens() const = 0;