(format: str)
| 258 | |
| 259 | |
| 260 | def parse_list(format: str) -> Tuple[List[ASTNode], str]: |
| 261 | rest = format |
| 262 | list = [] |
| 263 | while not rest[0] == ']': |
| 264 | i, rest, = parse_item(rest) |
| 265 | list.append(i) |
| 266 | return list, rest |
| 267 | |
| 268 | |
| 269 | def parse_item(format: str) -> Tuple[ASTNode, str]: |
no test coverage detected