(self, expected: Sequence[TokenType])
| 148 | return None |
| 149 | |
| 150 | def reject(self, expected: Sequence[TokenType]) -> NoReturn: |
| 151 | raise SyntaxError( |
| 152 | "expected {}; got {}".format( |
| 153 | " OR ".join(type.value for type in expected), |
| 154 | self.current.type.value, |
| 155 | ), |
| 156 | (FILE_NAME, 1, self.current.pos + 1, self.input), |
| 157 | ) |
| 158 | |
| 159 | |
| 160 | # True, False and None are legal match expression identifiers, |