Lines Matching refs:cur
165 self.cur = 0
168 return self.cur == len(self.input)
171 while not self.IsDone() and self.input[self.cur] in ' \t\n':
172 self.cur += 1
195 self.input[self.cur:])
209 if self.input[self.cur] != '=':
210 raise GNException("Unexpected token: " + self.input[self.cur:])
211 self.cur += 1
225 next_char = self.input[self.cur]
237 raise GNException("Unexpected token: " + self.input[self.cur:])
242 next_char = self.input[self.cur]
244 raise GNException("Expected an identifier: " + self.input[self.cur:])
247 self.cur += 1
249 next_char = self.input[self.cur]
252 self.cur += 1
253 next_char = self.input[self.cur]
262 begin = self.cur
265 if not self.IsDone() and _IsDigitOrMinus(self.input[self.cur]):
266 self.cur += 1
267 while not self.IsDone() and self.input[self.cur].isdigit():
268 self.cur += 1
270 number_string = self.input[begin:self.cur]
280 if self.input[self.cur] != '"':
282 self.input[self.cur:])
283 self.cur += 1 # Skip over quote.
285 begin = self.cur
286 while not self.IsDone() and self.input[self.cur] != '"':
287 if self.input[self.cur] == '\\':
288 self.cur += 1 # Skip over the backslash.
292 self.cur += 1
297 end = self.cur
298 self.cur += 1 # Consume trailing ".
308 if self.input[self.cur] != '[':
310 self.input[self.cur:])
311 self.cur += 1
319 if self.input[self.cur] == ']':
320 self.cur += 1 # Skip over ']'.
332 previous_had_trailing_comma = self.input[self.cur] == ','
335 self.cur += 1
345 end = self.cur + len(constant)
348 if self.input[self.cur:end] == constant:
349 self.cur = end