(self, left, collected=None)
| 232 | class Optional(BranchPattern): |
| 233 | |
| 234 | def match(self, left, collected=None): |
| 235 | collected = [] if collected is None else collected |
| 236 | for pattern in self.children: |
| 237 | m, left, collected = pattern.match(left, collected) |
| 238 | return True, left, collected |
| 239 | |
| 240 | |
| 241 | class OptionsShortcut(Optional): |