270 that does not raise exceptions. |
271 that does not raise exceptions. |
271 ''' |
272 ''' |
272 match = re.search(pattern, self.current()) |
273 match = re.search(pattern, self.current()) |
273 if match: |
274 if match: |
274 self.order.append(description) |
275 self.order.append(description) |
275 if description not in self.result.first_occurrence: |
276 list.append(self.result.occurrences[description], self.cursor) |
276 self.result.first_occurrence[description] = self.cursor |
|
277 return match.groups() |
277 return match.groups() |
278 else: |
278 else: |
279 self.parse_error(str.format("couldn't parse {}", description)) |
279 self.parse_error(str.format("couldn't parse {}", description)) |