(s: Scanner)
| 164 | |
| 165 | |
| 166 | def expression(s: Scanner) -> ast.Expression: |
| 167 | if s.accept(TokenType.EOF): |
| 168 | ret: ast.expr = ast.Constant(False) |
| 169 | else: |
| 170 | ret = expr(s) |
| 171 | s.accept(TokenType.EOF, reject=True) |
| 172 | return ast.fix_missing_locations(ast.Expression(ret)) |
| 173 | |
| 174 | |
| 175 | def expr(s: Scanner) -> ast.expr: |