• Home
  • Raw
  • Download

Lines Matching refs:lexer_

33   lexer_.Start(filename, input);  in Parse()
40 Lexer::Token token = lexer_.ReadToken(); in Parse()
44 return lexer_.Error("expected 'ninja_dyndep_version = ...'", err); in Parse()
50 lexer_.UnreadToken(); in Parse()
52 return lexer_.Error(string("unexpected ") + Lexer::TokenName(token), in Parse()
60 return lexer_.Error(lexer_.DescribeLastError(), err); in Parse()
63 return lexer_.Error("expected 'ninja_dyndep_version = ...'", err); in Parse()
68 return lexer_.Error(string("unexpected ") + Lexer::TokenName(token), in Parse()
81 return lexer_.Error("expected 'ninja_dyndep_version = ...'", err); in ParseDyndepVersion()
87 return lexer_.Error( in ParseDyndepVersion()
95 if (!lexer_.ReadIdent(key)) in ParseLet()
96 return lexer_.Error("expected variable name", err); in ParseLet()
99 if (!lexer_.ReadVarValue(value, err)) in ParseLet()
110 if (!lexer_.ReadPath(&out0, err)) in ParseEdge()
113 return lexer_.Error("expected path", err); in ParseEdge()
119 return lexer_.Error(path_err, err); in ParseEdge()
122 return lexer_.Error("no build statement exists for '" + path + "'", err); in ParseEdge()
127 return lexer_.Error("multiple statements for '" + path + "'", err); in ParseEdge()
134 if (!lexer_.ReadPath(&out, err)) in ParseEdge()
137 return lexer_.Error("explicit outputs not supported", err); in ParseEdge()
142 if (lexer_.PeekToken(Lexer::PIPE)) { in ParseEdge()
145 if (!lexer_.ReadPath(&out, err)) in ParseEdge()
157 if (!lexer_.ReadIdent(&rule_name) || rule_name != "dyndep") in ParseEdge()
158 return lexer_.Error("expected build command name 'dyndep'", err); in ParseEdge()
163 if (!lexer_.ReadPath(&in, err)) in ParseEdge()
166 return lexer_.Error("explicit inputs not supported", err); in ParseEdge()
171 if (lexer_.PeekToken(Lexer::PIPE)) { in ParseEdge()
174 if (!lexer_.ReadPath(&in, err)) in ParseEdge()
183 if (lexer_.PeekToken(Lexer::PIPE2)) in ParseEdge()
184 return lexer_.Error("order-only inputs not supported", err); in ParseEdge()
189 if (lexer_.PeekToken(Lexer::INDENT)) { in ParseEdge()
195 return lexer_.Error("binding is not 'restat'", err); in ParseEdge()
206 return lexer_.Error(path_err, err); in ParseEdge()
217 return lexer_.Error(path_err, err); in ParseEdge()