(self)
| 640 | return None |
| 641 | |
| 642 | def block(self) -> BlockStmt: |
| 643 | open = self.require(lx.LBRACE) |
| 644 | stmts: list[Stmt] = [] |
| 645 | while not (close := self.expect(lx.RBRACE)): |
| 646 | stmts.append(self.stmt()) |
| 647 | return BlockStmt(open, stmts, close) |
| 648 | |
| 649 | def stmt(self) -> Stmt: |
| 650 | if tkn := self.expect(lx.IF): |