Lines Matching refs:Parser
37 class Parser { class
44 typedef void (Parser::*DirectiveHandler)(StringPiece line,
49 Parser(StringPiece buf, const char* filename, vector<Stmt*>* stmts) in Parser() function in Parser
59 Parser(StringPiece buf, const Loc& loc, vector<Stmt*>* stmts) in Parser() function in Parser
68 ~Parser() {} in ~Parser()
100 (*make_directives_)["include"] = &Parser::ParseInclude; in Init()
101 (*make_directives_)["-include"] = &Parser::ParseInclude; in Init()
102 (*make_directives_)["sinclude"] = &Parser::ParseInclude; in Init()
103 (*make_directives_)["define"] = &Parser::ParseDefine; in Init()
104 (*make_directives_)["ifdef"] = &Parser::ParseIfdef; in Init()
105 (*make_directives_)["ifndef"] = &Parser::ParseIfdef; in Init()
106 (*make_directives_)["ifeq"] = &Parser::ParseIfeq; in Init()
107 (*make_directives_)["ifneq"] = &Parser::ParseIfeq; in Init()
108 (*make_directives_)["else"] = &Parser::ParseElse; in Init()
109 (*make_directives_)["endif"] = &Parser::ParseEndif; in Init()
110 (*make_directives_)["override"] = &Parser::ParseOverride; in Init()
111 (*make_directives_)["export"] = &Parser::ParseExport; in Init()
112 (*make_directives_)["unexport"] = &Parser::ParseUnexport; in Init()
115 (*else_if_directives_)["ifdef"] = &Parser::ParseIfdef; in Init()
116 (*else_if_directives_)["ifndef"] = &Parser::ParseIfdef; in Init()
117 (*else_if_directives_)["ifeq"] = &Parser::ParseIfeq; in Init()
118 (*else_if_directives_)["ifneq"] = &Parser::ParseIfeq; in Init()
121 (*assign_directives_)["define"] = &Parser::ParseDefine; in Init()
122 (*assign_directives_)["export"] = &Parser::ParseExport; in Init()
123 (*assign_directives_)["override"] = &Parser::ParseOverride; in Init()
563 Parser parser(StringPiece(mk->buf()), mk->filename().c_str(), in Parse()
570 Parser parser(buf, loc, out_stmts); in Parse()
577 Parser parser(buf, loc, out_stmts); in ParseNotAfterRule()
583 Parser::Init(); in InitParser()
587 Parser::Quit(); in QuitParser()
590 Parser::DirectiveMap* Parser::make_directives_;
591 Parser::DirectiveMap* Parser::else_if_directives_;
592 Parser::DirectiveMap* Parser::assign_directives_;
593 size_t Parser::shortest_directive_len_;
594 size_t Parser::longest_directive_len_;
595 vector<ParseErrorStmt*> Parser::parse_errors;
624 return Parser::parse_errors; in GetParseErrors()