Lines Matching refs:Parser
1 //===--- Parser.cpp - Matcher expression parser -----*- C++ -*-===//
11 /// \brief Recursive parser implementation for the matcher expression grammar.
18 #include "clang/ASTMatchers/Dynamic/Parser.h"
27 /// \brief Simple structure to hold information for one token from the parser.
28 struct Parser::TokenInfo {
53 const char* const Parser::TokenInfo::ID_Bind = "bind";
55 /// \brief Simple tokenizer for the parser.
56 class Parser::CodeTokenizer {
229 Parser::Sema::~Sema() {}
235 bool Parser::parseMatcherExpressionImpl(VariantValue *Value) {
323 bool Parser::parseExpressionImpl(VariantValue *Value) {
354 Parser::Parser(CodeTokenizer *Tokenizer, Sema *S,
358 class RegistrySema : public Parser::Sema {
375 bool Parser::parseExpression(StringRef Code, VariantValue *Value,
381 bool Parser::parseExpression(StringRef Code, Sema *S,
384 if (!Parser(&Tokenizer, S, Error).parseExpressionImpl(Value)) return false;
393 DynTypedMatcher *Parser::parseMatcherExpression(StringRef Code,
399 DynTypedMatcher *Parser::parseMatcherExpression(StringRef Code,
400 Parser::Sema *S,