(lines, pos, regex, token_type)
| 268 | |
| 269 | |
| 270 | def SkipUntil(lines, pos, regex, token_type): |
| 271 | line = lines[pos.line][pos.column:] |
| 272 | m = re.search(regex, line) |
| 273 | if m: |
| 274 | return pos + m.start() |
| 275 | else: |
| 276 | print ('ERROR: %s expected on line %s after column %s.' % |
| 277 | (token_type, pos.line + 1, pos.column)) |
| 278 | sys.exit(1) |
| 279 | |
| 280 | |
| 281 | def ParseExpTokenInParens(lines, pos): |
no outgoing calls
no test coverage detected