(s: Scanner)
| 134 | |
| 135 | |
| 136 | def expression(s: Scanner) -> ast.Expression: |
| 137 | if s.accept(TokenType.EOF): |
| 138 | ret: ast.expr = ast.NameConstant(False) |
| 139 | else: |
| 140 | ret = expr(s) |
| 141 | s.accept(TokenType.EOF, reject=True) |
| 142 | return ast.fix_missing_locations(ast.Expression(ret)) |
| 143 | |
| 144 | |
| 145 | def expr(s: Scanner) -> ast.expr: |