Lines Matching refs:Lexer
38 Lexer::Token token = lexer_.ReadToken(); in Parse()
40 case Lexer::POOL: in Parse()
44 case Lexer::BUILD: in Parse()
48 case Lexer::RULE: in Parse()
52 case Lexer::DEFAULT: in Parse()
56 case Lexer::IDENT: { in Parse()
70 case Lexer::INCLUDE: in Parse()
74 case Lexer::SUBNINJA: in Parse()
78 case Lexer::ERROR: { in Parse()
81 case Lexer::TEOF: in Parse()
83 case Lexer::NEWLINE: in Parse()
86 return lexer_.Error(string("unexpected ") + Lexer::TokenName(token), in Parse()
99 if (!ExpectToken(Lexer::NEWLINE, err)) in ParsePool()
107 while (lexer_.PeekToken(Lexer::INDENT)) { in ParsePool()
136 if (!ExpectToken(Lexer::NEWLINE, err)) in ParseRule()
144 while (lexer_.PeekToken(Lexer::INDENT)) { in ParseRule()
175 if (!ExpectToken(Lexer::EQUALS, err)) in ParseLet()
203 if (!ExpectToken(Lexer::NEWLINE, err)) in ParseDefault()
227 if (lexer_.PeekToken(Lexer::PIPE)) { in ParseEdge()
242 if (!ExpectToken(Lexer::COLON, err)) in ParseEdge()
265 if (lexer_.PeekToken(Lexer::PIPE)) { in ParseEdge()
279 if (lexer_.PeekToken(Lexer::PIPE2)) { in ParseEdge()
291 if (!ExpectToken(Lexer::NEWLINE, err)) in ParseEdge()
295 bool has_indent_token = lexer_.PeekToken(Lexer::INDENT); in ParseEdge()
304 has_indent_token = lexer_.PeekToken(Lexer::INDENT); in ParseEdge()
418 if (!ExpectToken(Lexer::NEWLINE, err)) in ParseFileInclude()