lexer.h 598 B

1234567891011121314151617
  1. #pragma once
  2. #include <yql/essentials/parser/lexer_common/lexer.h>
  3. namespace NSQLTranslationV1 {
  4. NSQLTranslation::ILexer::TPtr MakeLexer(bool ansi, bool antlr4);
  5. // "Probably" because YQL keyword can be an identifier
  6. // depending on a query context. For example
  7. // in SELECT * FROM group - group is an identifier, but
  8. // in SELECT * FROM ... GROUP BY ... - group is a keyword.
  9. bool IsProbablyKeyword(const NSQLTranslation::TParsedToken& token);
  10. bool SplitQueryToStatements(const TString& query, NSQLTranslation::ILexer::TPtr& lexer,
  11. TVector<TString>& statements, NYql::TIssues& issues);
  12. }