Lines Matching refs:lexer
20 def _push_context(self, lexer, env): argument
21 super(MockedParser, self)._push_context(lexer, env)
137 lexer = ninja.Lexer(['#comment'])
138 tok = lexer.peek()
142 lexer = ninja.Lexer(['#comment\n'])
143 tok = lexer.peek()
146 lexer = ninja.Lexer([' #comment\n'])
147 tok = lexer.peek()
150 lexer = ninja.Lexer(['\t#comment\n'])
151 tok = lexer.peek()
154 lexer = ninja.Lexer([' \t#comment\n'])
155 tok = lexer.peek()
159 lexer = ninja.Lexer([' \n'])
160 tok = lexer.peek()
163 lexer = ninja.Lexer(['\t\n'])
164 tok = lexer.peek()
167 lexer = ninja.Lexer([' \t\n'])
168 tok = lexer.peek()
172 lexer = ninja.Lexer(['\n'])
173 tok = lexer.peek()
177 lexer = ninja.Lexer([' a'])
179 tok = lexer.peek()
181 tok = lexer.peek() # Again
184 tok = lexer.lex() # Consume
186 tok = lexer.lex()
190 lexer = ninja.Lexer([' '])
191 tok = lexer.lex()
194 lexer = ninja.Lexer(['\t'])
195 tok = lexer.lex()
198 lexer = ninja.Lexer(['\t '])
199 tok = lexer.lex()
202 lexer = ninja.Lexer([' \t'])
203 tok = lexer.lex()
206 lexer = ninja.Lexer([' a'])
207 tok = lexer.lex()
209 tok = lexer.lex()
213 lexer = ninja.Lexer(['a b'])
215 tok = lexer.lex()
220 tok = lexer.lex()
226 lexer = ninja.Lexer(['build $\n', ' \texample'])
227 tok = lexer.lex()
231 tok = lexer.lex()
236 lexer = ninja.Lexer(['build $\n', 'example'])
237 tok = lexer.lex()
241 tok = lexer.lex()
246 lexer = ninja.Lexer(['build a:$\n', 'example'])
247 tok = lexer.lex()
251 tok = lexer.lex()
255 tok = lexer.lex()
259 tok = lexer.lex()
265 lexer = ninja.Lexer(['build $\n', '$\n', '$\n', 'example'])
266 tok = lexer.lex()
270 tok = lexer.lex()
276 lexer = ninja.Lexer(['a b\n', ' c'])
278 tok = lexer.lex()
283 tok = lexer.lex()
288 tok = lexer.lex()
294 tok = lexer.lex()
299 tok = lexer.lex()
305 lexer = ninja.Lexer(['abcdefghijklmnopqrstuvwxyz'])
306 tok = lexer.lex()
309 lexer = ninja.Lexer(['ABCDEFGHIJKLMNOPQRSTUVWXYZ'])
310 tok = lexer.lex()
313 lexer = ninja.Lexer(['0123456789'])
314 tok = lexer.lex()
317 lexer = ninja.Lexer(['.'])
318 tok = lexer.lex()
321 lexer = ninja.Lexer(['-'])
322 tok = lexer.lex()
325 lexer = ninja.Lexer(['_'])
326 tok = lexer.lex()
330 lexer = ninja.Lexer(['='])
331 tok = lexer.lex()
335 lexer = ninja.Lexer([':'])
336 tok = lexer.lex()
340 lexer = ninja.Lexer(['|'])
341 tok = lexer.lex()
345 lexer = ninja.Lexer(['||'])
346 tok = lexer.lex()
350 lexer = ninja.Lexer(['$name'])
352 lexer.lex()
353 lexer = ninja.Lexer(['${name}'])
355 lexer.lex()
358 lexer = ninja.Lexer(['ident'])
360 lexer.lex_match({ninja.TK.PIPE})
363 lexer = ninja.Lexer(['path1 path2'])
365 tok = lexer.lex_path()
371 tok = lexer.lex_path()
378 lexer = ninja.Lexer(['string with spaces'])
379 tok = lexer.lex_string()
387 lexer = ninja.Lexer(['$' + char])
388 tok = lexer.lex_path()
396 lexer = ninja.Lexer(['$' + char])
397 tok = lexer.lex_string()
404 lexer = ninja.Lexer(['$'])
406 lexer.lex_path()
408 lexer = ninja.Lexer(['$%'])
410 lexer.lex_path()
413 lexer = ninja.Lexer(['$'])
415 lexer.lex_string()
417 lexer = ninja.Lexer(['$%'])
419 lexer.lex_string()
423 lexer = ninja.Lexer(['path' + char])
424 tok = lexer.lex_path()
431 lexer = ninja.Lexer(['$a'])
432 tok = lexer.lex_path()
436 lexer = ninja.Lexer(['${a}'])
437 tok = lexer.lex_path()
441 lexer = ninja.Lexer(['path/${a}'])
442 tok = lexer.lex_path()
447 lexer = ninja.Lexer(['$a'])
448 tok = lexer.lex_string()
452 lexer = ninja.Lexer(['${a}'])
453 tok = lexer.lex_string()
457 lexer = ninja.Lexer(['path/${a}'])
458 tok = lexer.lex_string()
462 lexer = ninja.Lexer(['path/${a} with space'])
463 tok = lexer.lex_string()