Lines Matching refs:cur
180 self.cur = 0
183 return self.cur == len(self.input)
186 while not self.is_done() and self.input[self.cur] in ' \t\n':
187 self.cur += 1
211 self.input[self.cur:])
225 if self.input[self.cur] != '=':
226 raise GNException("Unexpected token: " + self.input[self.cur:])
227 self.cur += 1
240 begin = self.cur
243 if not self.is_done() and _is_digit_or_minus(self.input[self.cur]):
244 self.cur += 1
245 while not self.is_done() and self.input[self.cur].isdigit():
246 self.cur += 1
248 number_string = self.input[begin:self.cur]
258 if self.input[self.cur] != '"':
260 self.input[self.cur:])
261 self.cur += 1 # Skip over quote.
263 begin = self.cur
264 while not self.is_done() and self.input[self.cur] != '"':
265 if self.input[self.cur] == '\\':
266 self.cur += 1 # Skip over the backslash.
270 self.cur += 1
275 end = self.cur
276 self.cur += 1 # Consume trailing ".
286 if self.input[self.cur] != '[':
288 self.input[self.cur:])
289 self.cur += 1
297 if self.input[self.cur] == ']':
298 self.cur += 1 # Skip over ']'.
310 previous_had_trailing_comma = self.input[self.cur] == ','
313 self.cur += 1
323 end = self.cur + len(constant)
326 if self.input[self.cur:end] == constant:
327 self.cur = end
337 next_char = self.input[self.cur]
349 raise GNException("Unexpected token: " + self.input[self.cur:])
354 next_char = self.input[self.cur]
356 raise GNException("Expected an identifier: " + self.input[self.cur:])
359 self.cur += 1
361 next_char = self.input[self.cur]
364 self.cur += 1
365 next_char = self.input[self.cur]