aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/syntax/grammar.h
diff options
context:
space:
mode:
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 b6449698ea..b128129e95 100644
--- a/yql/essentials/sql/v1/complete/syntax/grammar.h
+++ b/yql/essentials/sql/v1/complete/syntax/grammar.h
@@ -5,6 +5,7 @@
#include <contrib/libs/antlr4_cpp_runtime/src/Vocabulary.h>
#include <unordered_set>
+#include <string>
#ifdef TOKEN_QUERY // Conflict with the winnt.h
#undef TOKEN_QUERY
@@ -19,8 +20,10 @@ namespace NSQLComplete {
class ISqlGrammar {
public:
virtual const antlr4::dfa::Vocabulary& GetVocabulary() const = 0;
+ virtual const std::string& SymbolizedRule(TRuleId rule) 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;
virtual ~ISqlGrammar() = default;
};