From f7090cadc2bec2ff571b895a987c0043794903cf Mon Sep 17 00:00:00 2001 From: Erick Lavoie Date: Thu, 6 Nov 2025 17:11:13 +0100 Subject: [PATCH] Update interp_Lwhile.py Missing 'return' for the body case. --- interp_Lwhile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interp_Lwhile.py b/interp_Lwhile.py index ad0d12a..b692686 100644 --- a/interp_Lwhile.py +++ b/interp_Lwhile.py @@ -8,7 +8,7 @@ def interp_stmt(self, s, env, cont): match s: case While(test, body, []): if self.interp_exp(test, env): - self.interp_stmts(body + [s] + cont, env) + return self.interp_stmts(body + [s] + cont, env) else: return self.interp_stmts(cont, env) case _: