9 #ifndef MLIR_TOOLS_MLIRQUERY_QUERYPARSER_H
10 #define MLIR_TOOLS_MLIRQUERY_QUERYPARSER_H
16 #include "llvm/ADT/StringRef.h"
17 #include "llvm/LineEditor/LineEditor.h"
29 static std::vector<llvm::LineEditor::Completion>
34 : line(line), completionPos(
nullptr), qs(qs) {}
36 llvm::StringRef lexWord();
41 QueryRef completeMatcherExpression();
51 const char *completionPos;
52 std::vector<llvm::LineEditor::Completion> completions;
static QueryRef parse(llvm::StringRef line, const QuerySession &qs)
static std::vector< llvm::LineEditor::Completion > complete(llvm::StringRef line, size_t pos, const QuerySession &qs)
llvm::IntrusiveRefCntPtr< Query > QueryRef